light2
2.1.0.0
|
Light 2 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Light 2 Click example.
This example demonstrates the use of Light 2 Click board by measuring the ambient light level in Lux.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration.
Reads the ADC voltage and then calculates the illuminance from it. The calculated value of illuminance in lux is being displayed on the USB UART approximately once per second.
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |