Contiki-NG
|
Files | |
file | tsl256x.c |
Driver for the external TSL256X light sensor. | |
file | tsl256x.h |
Header file for the external TSL256X Sensor Driver. | |
Functions | |
static uint16_t | calculate_lux (uint8_t *buf) |
Driver for the TSL256X sensor
The TSL256X driver returns the converted light value value in lux
|
static |
< scale channel values by 2^10
< 322/81 * 2^CH_SCALE
< 322/11 * 2^CH_SCALE
< scale channel values by 2^10
< scale channel values by 2^10
< scale channel values by 2^10
< scale by 2^14
< scale by 2^14
Definition at line 68 of file tsl256x.c.
References CH_SCALE, CHSCALE_TINT0, CHSCALE_TINT1, and LUX_SCALE.