swipeswitch 2.0.0.0
|
SwipeSwitch Click example. More...
Macros | |
#define | SWIPESWITCH_GESTURE_MODE 0 |
#define | SWIPESWITCH_POSITION_MODE 1 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
SwipeSwitch Click example.
This Click is based on integrated touch controller featuring 2 receivers and 3 transmitters, allowing a 2x3 capacitive touch trackpad to be formed. By using a specific trace pattern on the PCB, the Click board is able to sense several different swipe gestures, offering several different configuration parameters.
The demo application is composed of two sections :
Initialization and configuration of the chip for measurement
In the first test mode, it checks whether or not a new event ocurred (TAP or SWIPE). If it did, it writes out data regarding that event via UART. In the second test mode, X and Y coordinates are being read and logged via UART.
#define SWIPESWITCH_GESTURE_MODE 0 |
#define SWIPESWITCH_POSITION_MODE 1 |
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |