dcs-bios / dcs-bios-arduino-library

Arduino Library to talk to DCS-BIOS
MIT License
61 stars 29 forks source link

Dcs bios And multiplexing #36

Open M-CHAMP opened 2 years ago

M-CHAMP commented 2 years ago

Maybe I'm just not doing it right When i try to use a digital multiplexer with dcs bios . I get oscillation in the virtual cockpit. I think it is Because dcs bios is taking every time the channel switches as a button press but that may be the way I have built the code as I am passing the pin as a mux address example mux.channel(2) I'm trying to find a way to store the state of the mux input so when the loop starts over dcsbios doesn't update the state when the channel changes I looked in the switches header file I think I need to change the digitalRead portions to fit my need but Im not sure what I need to do just that something needs changed