|
lightranger13 2.2.0
|
LightRanger 13 Click example. More...
Macros | |
| #define | FACTORY_CALIBRATION_DISABLE |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
LightRanger 13 Click example.
This application demonstrates the usage of the LightRanger 13 Click for distance measurement and monitoring.
The demo application is composed of two sections:
Initializes the logger and LightRanger 13 Click with default configuration, displays device information, performs factory calibration (if enabled), and sets up distance measurement thresholds (1mm-1000mm) with persistence (5 consecutive times) to ensure reliable readings. It then starts the measurement process.
Waits for the data ready interrupt signal, indicating a new measurement is available. Upon receiving the signal, it reads the distance and temperature data from the sensor and logs the values to USB UART.
| #define FACTORY_CALIBRATION_DISABLE |
| 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 | ) |