capsense
2.0.0.0
|
CapSense Click add-on board features a capacitive sensing module CY8C201A0 which takes human body capacitance as an input and directly provides the real time sensor information via I2C output.
We provide a library for the CapSense 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 CapSense Click driver.
capsense_cfg_setup
Config Object Initialization function. capsense_init
Initialization function. capsense_default_cfg
Click Default Configuration function. capsense_get_slider_lvl
This function gets slider level. capsense_read_data
Read one byte from register address capsense_write_data
Generic write data function This example waits user to press top and bottom button to turn Click's LEDs ON or OFF.
The demo application is composed of two sections :
Initialize CapSense Click and logger.
Press top and bottom button and turn it ON or OFF button LED's.
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.