Button Play Click Board
Button Play Click Board
The Button Play Click Board™ 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 utilising 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 a backlight, which makes the Click Board™ very useful for building various stylized and visually appealing interfaces.
Software Support
We provide a library for the Button PLAY Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library contains function for checking state of INT pin.
Key Functions
uint8_t buttonplay_intGet( void )
- returns state of INT pin.
Example Description
The application is composed of the three sections :
- System Initialization - Initializes LOG, PWM pin as OUTPUT and INT pin as input.
- Application Initialization - Initializes GPIO driver, initializes pwm, calculates max duty cycle value and starts PWM output.
- Application Task - Drives PWM pin output values from ZERO to MAX and back to ZERO continuously.
void applicationTask( ) { for (i = 0; i < dutyRatio; i += 1) { buttonplay_pwmSetDuty( i ); Delay_ms(3); } for (i = dutyRatio; i > 0; i -= 1) { buttonplay_pwmSetDuty( i ); Delay_ms(3); } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
PWM
UART
Additional Notes and Information
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.
Button Play Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.