buttonplay 2.0.0.0
|
Button PLAY click is a very interesting interactive gadget on a Click boardâ„¢. It is an integrated capacitive touch sensor display in the form of a button. By utilizing an advanced capacitive touch sensing technology, the CTHS15CIC05ARROW sensor can successfully replace the traditional mechanical button, allowing very simplified yet reliable user interfaces to be developed. Besides the touch detection, this sensor also features a green arrow icon with backlight, which makes the Click boardâ„¢ very useful for building various stylized and visually appealing interfaces.
We provide a library for the ButtonPlay 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for ButtonPlay Click driver.
buttonplay_cfg_setup
Config Object Initialization function. buttonplay_init
Initialization function. buttonplay_pwm_stop
This function stops the PWM moudle output. buttonplay_pwm_start
This function starts the PWM moudle output. buttonplay_get_button_state
This function reads the digital signal from the INT pin which tells us whether the button has been pressed or not. This example showcases how to initialize and use the whole family of Button clicks. One library is used for every single one of them. They are simple touch detectors which send a pressed/released signal and receive a PWM output which controls the backlight on the button.
The demo application is composed of two sections :
This function initializes and configures the logger and click modules.
This example first increases the backlight on the button and then decreases the intensity of the backlight. When the button is touched, reports the event in the console using UART communication.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
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. UART terminal is available in all MikroElektronika compilers.