43 #include "dev/light.h"
50 sensors_light_init(
void)
100 sensors_light1_lux(
void)
103 temp = (uint32_t)ADC12MEM0;
105 temp = (temp*3125)>> 9;
106 return (uint16_t)(temp & 0xFFFF);
111 sensors_light2_lux(
void)
114 temp = (uint32_t)ADC12MEM1;
116 temp = (temp*625)>> 10;
117 return (uint16_t)(temp & 0xFFFF);