A test program can be found in File > Examples > Teensy > USB_Joystick > Complete. The test expects six voltages on analog inputs 0 to 5, and buttons on 0 to 15 (for Teensy) or 0 to 31 (for Teensy++). An Arduino Library for the Qwist Joystick. Qwiic Joystick makes reading an analog joystick over I2C easy and fast. The current joystick position and button state can be read from separate registers.
This is a project that uses a generic joystick and using the Arduino reads the +y and -y values and the +x and -x values and using a series of if and else statements will tell the 5 leds which led to turn on for ex: If you rock the joystick to the left your left led will light up. Jun 12, 2018 · Arduino Joystick Library Version 2.0.5. This library can be used with Arduino IDE 1.6.6 (or above) to add one or more joysticks (or gamepads) to the list of HID devices an Arduino Leonardo or Arduino Micro (or any Arduino clone that is based on the ATmega32u4) can support.