Image (c) Martin Schmitt, https://xflight.de
This firmware is used to connect all possible buttons, switches and potentiometers of a DIY F-16 ICP to the computer and get detected by Windows as a Joystick.
The Teensy will show up in Windows' game controller settings as "F-16 ICP" with 38 Buttons and 4 analogue axes.
These inputs can be mapped to the corresponding commands in Falcon BMS or DCS World.
It's configured to send a corresponding buttonpress for all pushbuttons (including WARN RESET POSITION) but also for the toggleswitch positions.
Each of the 2-position switches (SYM ON-OFF, BRT ON-OFF, DRIFT C/O-NORM) sends a short button press/release sequence when activated and one of another button when released.
The 3-position GAIN switch will send 3 different button press/release actions for each position.
Pins 0-27 are used for all pushbuttons (including WARN RESET), pins 28-32 for each of the active switch positions and pins 42-45 (analog pins 4-7) for the potentiometers.
The directory "f16_icp" holds the .ino file for the ArduinoIDE.
Here's my version of the buttons (no switches and potentiometers yet) to connect to the Teensy.
Thanks to Les at Pointy's World (http://www.planetpointy.co.uk) for the great description on how to create a Joystick with a Teensy++ 2.0.
All the files are free to use under the GNUGPLv3
If you find those files useful and would like to support me with an icecream, coffee or pizza, you can use paypal.me to do so ;)
Paypal.me