MobiFlight-Connector icon indicating copy to clipboard operation
MobiFlight-Connector copied to clipboard

Option to reverse LED PullUp/Down in Firmware

Open pizman opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

User who order PCB and Panels from Hispapanel get in trouble with LED Outputs cause Hispa work with a Common Anode Logic. We can avoid this by solder the LED on there PCB inverted and simply wire the Common Anode Pin ourself to GRD on the Mega. BUT.... Lots of users not know this or swap from other Software to Mobiflight ... So the Panels are still mounted in wrong way.

A provisional solution for now is to use in MF Compare/Transform ... So a Output Value of 0 light LED... A Value of 1 disable it. Simple if($=1,0,1) work fine. BUT Disadvantage is if MF not RUN then all LED are On. (Bad feeling)

So... In the past we offer the "Reverse Digits for 7Seg" feature.... Whatever just a few people was effected we thought this is no big deal and is helpfull. So i think about a tool in MF that also solve this LED Problem now.

Describe the solution you'd like

A Option in the Create Device ---> LED Output (MF Modul Tab) Next to Pin and PWM Checkmark i looking for another checkmark "Reverse Polarity" Option.

If Checkmark is set we define this single LED Pin should controlled by our Firmware inverted. So its High if LED should be OFF and its GRD if LED should be on ( simply inverted to current logic)

Additional context I know this is no must have. But maybe if its technical (firmware side) no problem it will be a benefit for some people.

pizman avatar Feb 01 '23 11:02 pizman