MobiFlight Community Support

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! 

05/03/2024 - This forum is read-only

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.

icon
Avatar
GBODE7
Posts: 2
I need HELP to configure 2x LED’s to indicate the active POSITION of the Rotary Encoder SWITCH of the LAST switching done for either COM1 STBY or COM2 STBY.
(I just don’t remember, in flight, the last active switching done. LOL:lol: )

I implemented the exact configuration as described in https://www.mobiflight.com/forum/topic/652.html (Typical Cessna Radio - FSX-E) and successfully connected and configured one Rotary Encoder to adjust COM1 STBY KHz & MHz and COM2 STBY MHz & KHz.
I want to add the 2x LED’s to this configuration.
Thanks for Mobiflight and support.
Regards
Johan
2020-09-14 21:34
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

I not fully understand.....

You mean the push button on the Encoder that is change Khz or Mhz by press. And you like 2 LED ( One for Khz one for Mhz) and there should be a light indication what function is currently ON ???
Make no direct sense cause if you turn the encoder for one step you will directly see what function is in use ( what value is change) .

Whatever it´s possible..... Here you need two Configs.... One for each LED .
Both configs will read the Custom Offset you also use for the KhzMhz swap.
This Offset is Zero for function 1 ( mostly khz) and 1 for function 2 ( mostly Mhz) .
So the Mhz Config work directly..... Here 1 means LED on and 0 ( Khz active) means LED OFF.
For the other one ( that is active if offset is zero) we need a "inverter" .... Use if($=1,0,1) .
Means if Offset is 1 ( LED should be off) we compare value to 0..... If Value is Zero ( whatever LED should be ON) we compare to 1

Hopefully i understand your intentions correct.
If not please explane me more detailed WHAT you need.
Good Luck !
2020-09-14 22:21
Avatar
GBODE7
Posts: 2
Thanks for your prompt reply in regard
I configured the LED's as per your recommendation and all and are functional.
Best regards
Johan
2020-09-16 16:56
icon