Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.
You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks!
The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!
See you on our MobiFlight Community Discord server.
A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.
The forum is still providing a lot of good content, hence we keep this information accessible.
Hi Vu,
I actually think you can do this with preconditions.
You need probably two config item for each led with a precondition each.
Since the preconditions reference other offsets you must also create a offset config for each of them.
Example.
* Create one output config item for DECEL
* Create one output config item for ABRK_LO
* Create one output config item for DECEL_LO_LED on
** Add precondition DECEL=1 and ABRK_LO=1
** Set output value on comparison Tab to 1 for all cases.
* Create one output config item for DECEL_LO_LED off
** Add precondition DECEL!=1 or ABRK_LO!=1
** Set output value on comparison Tab to 0 for all cases.

JL made only 1 offset code for DECEL and he told me to edit pseudo code to get the result:
in pseudo code:
IF (DECEL = ON)AND(ABRK_LO = ON) THEN DECEL_LO_LED=ON ELSE DECEL_LO_LED=OFF
IF (DECEL = ON)AND(ABRK_MED = ON) THEN DECEL_LO_LED=ON ELSE DECEL_MED_LED=OFF
IF (DECEL = ON)AND(ABRK_HI = ON) THEN DECEL_LO_LED=ON ELSE DECEL_HI_LED=OFF

I am sure it will be fine if there are value of 0x7393/1/5 after touchdown.![]()
1. Create config DECEL, Offset 7393 bit 5, Comparison set to 1 for output. (=32 set to 1)
No Display Led is assigned for this config.
## Here you MUST use Bitmask... A Compare is wrong and can´t work ! Read status of bit 5 ONLY !
2. Create config ABRK Low , comparision set to 1 for out put (=64 set to 1)
Display select Adruino/Pin/ABLOW Blue LED > Test OK
## Same like above.... A Compare is wrong and bacome to an error! Read status of bit 6 of offset 7393 ONLY !
3. Create config DECEL_LOW_LED_ON , No offset, Comparison Tab Not used, Precondition : ABRK Low =1 & DECEL =1
Display select Adruino/Pin/green light > test OK
## Here you alreday need an Offset (Whatever)... Compare is needed... If $=0 Then:1 Else:1
4. Created config DECEL_LOW_LED_OFF, No offset, Comparison Tab not used, Precondition : ABRK Low !=1 & DECEL !=1
Display select Adruino/Pin/green light > test OK
## Like on Nr. 3 You need a Offset .... Compare is needed too here.... IF $=1 Then: 0 Else:0 .... 2. Problem : Precondition must be "OR" .... ("And" is wrong here)

