TouchPad 2 Click Board
TouchPad 2 Click Board
The TouchPad 2 Click Board™ is a compact add-on board that easily integrates projected capacitive touch into their applications. This board features the IQS525, a projected capacitive touch and proximity trackpad/touchscreen controller from Azoteq. It features best-in-class sensitivity, signal-to-noise ratio, and automatic tuning of electrodes, in addition to the multi-touch and multi-hover features. This Click Board™ is characterized by embedded gesture engine recognition for simple gestures (tap, swipes, hold) and built-in noise detection and filtering. This Click Board™ is suitable for human-machine interfaces, keypad or scrolling functions, single-finger gesture-based interfaces, and more.
The TouchPad 2 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a thoroughly tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the Touchpad 2 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended way), downloaded from our LibStock™ or found on mikroE Github account.
Library Description
This library contains API for the Touchpad 2 Click Board™driver.
Key Functions
touchpad2_cfg_setup
- Config Object Initialization function.touchpad2_init
- Initialization function.touchpad2_default_cfg
- Click Default Configuration function.
Example Description
This library contains API for the Touchpad 2 Click Board™ driver. The library contains drivers to get touch details, the number of touches, X and Y coordinates and touch strength.
void application_task ( void ) { touchpad2_wait_ready( &touchpad2 ); touchpad2_get_touch ( &touchpad2, &touch_data ); Delay_ms( 100 ); if ( ( touch_data.id_tag == TOUCHPAD2_ID_TAG_TOUCH_1 ) || ( touch_data.id_tag == TOUCHPAD2_ID_TAG_TOUCH_2 ) || ( touch_data.id_tag == TOUCHPAD2_ID_TAG_TOUCH_3 ) || ( touch_data.id_tag == TOUCHPAD2_ID_TAG_TOUCH_4 ) || ( touch_data.id_tag == TOUCHPAD2_ID_TAG_TOUCH_5 ) ) { log_printf( &logger, " Number of touches : %d rn", ( uint16_t ) touch_data.no_of_fingers ); log_printf( &logger, "- - - - - - - - - - - - -rn" ); log_printf( &logger, " Coordinate X = %d rn", touch_data.x_pos ); log_printf( &logger, " Coordinate Y = %d rn", touch_data.y_pos ); log_printf( &logger, "- - - - - - - - - - - - -rn" ); log_printf( &logger, " Touch Strength : %u rn", ( uint16_t ) touch_data.touch_str ); log_printf( &logger, "------------------------ rn" ); Delay_ms( 500 ); } }
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on mikroE Github account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.TouchPad2
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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.
MIKROSDK
The Touchpad 2 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
TouchPad 2 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.