|
PebbleOS v4.47.0
|
Simulated ambient light sensor, reading what pbl_als_sim_set() sets, complete darkness by default. More...
Macros | |
| #define | SIM_ALS (&pbl_als_sim) |
| The simulated ambient light sensor. | |
Functions | |
| void | pbl_als_sim_set (const struct pbl_als *als, uint32_t level) |
| Set the light level the sensor reads. | |
Simulated ambient light sensor, reading what pbl_als_sim_set() sets, complete darkness by default.
| #define SIM_ALS (&pbl_als_sim) |
The simulated ambient light sensor.
| void pbl_als_sim_set | ( | const struct pbl_als * | als, |
| uint32_t | level | ||
| ) |
Set the light level the sensor reads.
| als | Device. |
| level | Light level in raw counts, below PBL_ALS_LEVEL_MAX. |