ldctouch 2.0.0.0
|
LDCTouch Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
LDCTouch Click example.
This example demonstrates the use of LDC Touch click board by configuring the buttons to trigger on finger press, and reading the buttons state in the loop.
The demo application is composed of two sections :
Initializes the driver and configures the buttons to be active on finger press.
Waits for the button active event interrupt and then reads and displays the buttons state and their raw data 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 | ) |