touchpad4 2.0.0.0
|
Touchpad4 Click example. More...
Macros | |
#define | TOUCHPAD4_EXAMPLE_TOUCH 1 |
#define | TOUCHPAD4_EXAMPLE_CHANNEL 2 |
#define | TOUCHPAD4_EXAMPLE_GESTURE 3 |
Functions | |
void | touchpad4_touch_reading (void) |
Touchpad 4 touch info example. | |
void | touchpad4_channel_reading (void) |
Touchpad 4 channel example. | |
void | touchpad4_gesture_reading (void) |
Touchpad 4 gesture info example. | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Touchpad4 Click example.
This example showcases ability of the device to read touch coordinates, active/inactive channels, and gesture informations.
The demo application is composed of two sections :
Initialize host communication modules(UART and I2C) and additional pins, for device control. Then resets device and set default configuration where Channels and pins are mapped and configured, and set communication with device only on touch/event. In the end one of 3 examples is set;
There are 3 examples that shocaes ability of the device:
#define TOUCHPAD4_EXAMPLE_CHANNEL 2 |
#define TOUCHPAD4_EXAMPLE_GESTURE 3 |
#define TOUCHPAD4_EXAMPLE_TOUCH 1 |
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 | ) |
void touchpad4_channel_reading | ( | void | ) |
Touchpad 4 channel example.
This function reads channel informations and logs them.
void touchpad4_gesture_reading | ( | void | ) |
Touchpad 4 gesture info example.
This function reads gesture informations and logs them.
void touchpad4_touch_reading | ( | void | ) |
Touchpad 4 touch info example.
This function reads touch informations and logs them.