ambient19 2.0.0.0
|
Ambient19 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Ambient19 Click example.
This example demonstrates the use of Ambient 19 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.
Waits for the data ready interrupt, then reads the ambient light level in Lux as well as the raw proximity data of PS and IR leds and displays the results on the USB UART. By default, the data ready interrupt triggers upon every ADC cycle which will be performed every 500ms approximately.
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 | ) |