touchkey3 2.0.0.0
|
TouchKey3 Click example. More...
Functions | |
uint8_t | calculationt_index (uint8_t data_in) |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
TouchKey3 Click example.
This click uses 7 capacitive sensing channels, with the #CHANGE pin routed to the INT pin of the mikroBUS™, so that an interrupt can be triggered if any of the sensors detect a touch event. This can be used to trigger an SPI read cycle only when the key is actually pressed, avoiding the need for constant polling of the sensor registers.
The demo application is composed of two sections :
Initializes click driver and performs a soft reset of the click.
Reads the status of the keys, and outputs a message if a key is touched.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
uint8_t calculationt_index | ( | uint8_t | data_in | ) |
int main | ( | void | ) |