joystick4
2.1.0.0
|
Joystick 4 Click is a compact add-on board that provides precise and reliable input control for various interactive projects. This board features the 2434804-1, a 5-position tactile switch from the ALCOSWITCH series by TE Connectivity. The switch features an extended top actuator for precise input detection, a stainless steel contact base, and silver contact plating, ensuring durability and corrosion resistance with a lifespan of 100,000 cycles. With a low-profile design, it handles a contact current rating of 50mA.
We provide a library for the Joystick 4 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 Joystick 4 Click driver.
joystick4_cfg_setup
Config Object Initialization function. joystick4_init
Initialization function. joystick4_default_cfg
Click Default Configuration function. joystick4_get_int_pin
This function returns the INT pin logic state. joystick4_get_pins
This function reads all input pins logic state. joystick4_get_position
This function returns the joystick position flag extracted from the input pins state mask. This example demonstrates the use of the Joystick 4 Click board by reading and displaying the joystick position.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration.
Waits for the input change interrupt, reads the input pins mask, extracts the joystick position from those readings, and displays it 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.