ambient12 2.0.0.0
|
Ambient 12 Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Ambient 12 Click Example.
This example demonstrates the use of Ambient 12 click board.
The demo application is composed of two sections :
Initializes the driver and sets the gain mode to M-Gain which can detect the illuminance of up to 10000 lux.
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 | ) |