touchkey4 2.0.0.0
|
TouchKey4 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
TouchKey4 Click example.
This demo performs touch & release detection click functionality.
The demo application is composed of two sections :
Device and driver initialization.
Calls function to check touch detection (is interrupt occured) and shows message on USB UART if touch is detected or if touch is released on enabled inputs.
note:
TouchKey 4 is configured to work in Combo mode (Active and Standby mode). Input 1 is enabled in Active mode, input 3 is enabled in Standby mode, and input 2 is enabled to work in both modes. In this example the interrupt will be generated when touch is detected and when touch is released. Standby mode should be used when fewer sensor inputs are enabled, and when they are programmed to have more sensitivity. Sometimes it is neccessary to cycle the board power supply if click doesn't work.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |