FS2020-HWPanel leverages Python-SimConnect and pySerial to allow two-way switches connected to an Arduino board to control switches in Microsoft Flight Simulator 2020 (MSFS2020).
This project is in the very initial and early stages of development but is in a working state (at least with the Cessna 172).
Listens on COM3 for data to arrive from an Arduino, then triggers Events to Microsoft Flight Simulator S2020 via Python-SimConnect based on a Dictionary which maps the data received with the Event Name. I currently have it working with some simple two-way switches connected to the Arduino. The code running on the Arduino can be found in 'single_switch.ino'
So that testing could be done without the need for Arduino board this uses a tkinter GUI with buttons to trigger Events to Microsoft Flight Simulator S2020 via Python-SimConnect.
Reads Simulator variables out of MSFS2020 (also using Python-SimConnect) and displays on console.
For Python-SimConnect, Python 64-bit is needed.
Below are links to the Microsoft documentation for SimConnect