lightranger10 2.0.0.0
|
LightRanger10 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
LightRanger10 Click example.
This example demonstrates the use of LightRanger 10 click board by reading and displaying the target object distance in millimeters.
The demo application is composed of two sections :
Initializes the driver, performs the click default configuration, and then calibrates the sensor to the object positioned at 200mm distance from the sensor.
Waits for the data ready interrupt, then clears the interrupt and reads the target distance in millimeters and displays the results on the USB UART every 200ms approximately.
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 | ) |