button2
2.1.0.0
|
Button 2 Click is a compact add-on board designed for simple and efficient tactile input detection. This board features the TL3215AF160BQ, a TL3215 series of tactile switches from E-Switch, featuring high reliability and precise operation. The switch has a 2mm actuator, 160gf actuation force, silver contact material, and a lifespan of 1,000,000 cycles, while the integrated blue LED provides visual feedback. The board supports the new Click Snap feature, allowing easy detachment of the sensor area for flexible use.
We provide a library for the Button 2 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 Button 2 Click driver.
button2_cfg_setup
Config Object Initialization function. button2_init
Initialization function. button2_get_int_pin
This function returns the INT pin logic state. button2_toggle_led
This function toggles the button LED state by toggling the LED pin logic state. button2_enable_led
This function enables button LED by setting the LED pin to the high logic state. This example demonstrates the use of Button 2 click board by toggling the button LED and switch state on button press.
The demo application is composed of two sections :
Initializes the driver and logger.
Toggles the button LED and switch state on button press and displays the state on the USB UART.
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.