ambient18 2.0.0.0
|
Ambient 18 Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Ambient 18 Click Example.
This example demonstrates the use of Ambient 18 click board by measuring and displaying the illuminance value in Lux.
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 1000 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 | ) |