|
proximity22 2.2.0
|
Proximity 22 Click example. More...
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Proximity 22 Click example.
This example demonstrates the use of the Proximity 22 Click board by reading and displaying proximity, ambient light (ALS), and temperature measurements. The data is read only when a new measurement is ready, indicated by an interrupt.
The demo application is composed of two sections:
Initializes the logger and the Proximity 22 Click driver, then sets the default configuration.
Waits for a data ready interrupt and then reads the proximity, temperature, and ALS data (red, green, blue, and clear channels), displaying the results via UART approximately every 200 ms.
| 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 | ) |