2021-10-25, 05:58 PM
Interesting because I recall this same keypad with 8 wires, and 2 for the led.
So maybe it changed. In any case, the best way would be to maintain pypilot so that a hat.conf file can specify if the keys are active high or low. This is needed anyway to eventually support matrix keypads and rotary encoders as well as various led outputs etc just by specifying them in the file (which can be loaded on an eeprom as well to specify the hardware attached)
I suggest modifying the software to make the lines work for you, and post the changes "git diff" and I'll work on a config option to support it. As for the LED, what will it do? Just turn on when the pilot is on or should it have other functions like blinking in standby?
So maybe it changed. In any case, the best way would be to maintain pypilot so that a hat.conf file can specify if the keys are active high or low. This is needed anyway to eventually support matrix keypads and rotary encoders as well as various led outputs etc just by specifying them in the file (which can be loaded on an eeprom as well to specify the hardware attached)
I suggest modifying the software to make the lines work for you, and post the changes "git diff" and I'll work on a config option to support it. As for the LED, what will it do? Just turn on when the pilot is on or should it have other functions like blinking in standby?