Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adafruit Qualia pins not working with DCS-BIOS #551

Open
Sturmbock opened this issue Mar 25, 2024 · 1 comment
Open

Adafruit Qualia pins not working with DCS-BIOS #551

Sturmbock opened this issue Mar 25, 2024 · 1 comment

Comments

@Sturmbock
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants