DCS-Skunkworks / dcs-bios-arduino-library

A library designed to run on Arduinos and similar microcontrollers and communicate with DCS-BIOS.
MIT License
60 stars 23 forks source link

Adafruit Qualia pins not working with DCS-BIOS #65

Open Sturmbock opened 6 months ago

Sturmbock commented 6 months ago

DCS-BIOS version 2.8.7

DCS-BIOS Control All (tests on DcsBios::Switch2Pos radaltTestSw("RADALT_TEST_SW", A0);)

Describe the bug I am using the Adafruit Qualia ESP32S3 board, driving a 2.1" round display. The board has a number of pins (see attached) that can be set to digital input or output using pinMode. This works fine with simple code in Arduino IDE (pinMode test works). However in all DCS-BIOS examples tried the DCS-BIOS code will not accept inputs from these pins with or without pinMode on either the analog pins or those stated to offer arduino pins (pinMode test1).

To Reproduce These results have been confirmed by another person using their own code. In all cases the code compiles without error, it just does not work. To reproduce you will need a Qualia board

Expected behavior I would expect DCS-BIOS to be able to take input from these pins, as they natively work fine.

Screenshots See attached

Additional context Add any other context about the problem here. Qualia pins

pinMode_test_works.txt pinMode_test_1.txt

wiggles5289 commented 5 months ago

Have you tried pinMode INPUT_PULLUP or an alternate pin like A1? I looked at the schematic for the Qualia board and saw that there is a resistor on A0 when connected to the JST header. Where did you hook up the switch to? How was the switch wired? IE: A0 to GND or A0 to +5V/3V3 on the switch.