ambient21 2.1.0.0
|
Ambient 21 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Ambient 21 Click example.
This example demonstrates the use of Ambient 21 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 and displays the results on the USB UART. By default, the data ready interrupt triggers upon every ADC cycle which occurs every 200ms.
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 | ) |