PebbleOS
Loading...
Searching...
No Matches
light_level.h File Reference
#include <stdint.h>

Macros

#define AMBIENT_LIGHT_LEVEL_ENUM_COUNT   (AmbientLightLevelVeryLight + 1)
 Number of AmbientLightLevel values.
 

Enumerations

enum  AmbientLightLevel {
  AmbientLightLevelUnknown = 0 , AmbientLightLevelVeryDark , AmbientLightLevelDark , AmbientLightLevelLight ,
  AmbientLightLevelVeryLight
}
 Light level enum. More...
 

Functions

AmbientLightLevel light_level_to_enum (uint32_t lux)
 Classify a light level against the dark threshold.