touchclamp
2.0.0.0
|
TouchClamp Click is a mikroBUS™ add-on board with NXP’s MPR121 proximity capacitive touch sensor controller. It has seven plated holes for clamps which can be used to connect any – literally any – conductive object in order to use it as an input button to send an interrupt to the target board MCU.
We provide a library for the TouchClamp Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for TouchClamp Click driver.
void touchclamp_cfg_setup ( touchclamp_cfg_t *cfg );
TOUCHCLAMP_RETVAL touchclamp_init ( touchclamp_t *ctx, touchclamp_cfg_t *cfg );
void touchclamp_default_cfg ( touchclamp_t *ctx );
uint16_t touchclamp_get_touch_data ( touchclamp_t *ctx );
This demo-app shows the touch position using TouchClamp Click.
The demo application is composed of two sections :
Configuring clicks and log objects. Setting the Click in the default configuration.
Detect and dispay touch position when the Click is triggered.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART Click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.