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
TheGerman
Posts: 9
Hi, I am using a mobiflight variable to control display brightness. I am using a rotary encoder that is on the one hand controlling the "Main Panel Brightness" and a secondary input function is adding/subtracting from an internal variable which I then use in the "Brightness ref." in the "Display" section of the 7 seg LED display. Works great, but the value in the internal variable should only go from 0 to 15. Is there any way that this can be accomplished? e.g. an "IF" clause like "IF $<0:$=0 ELSE $-1"...

Or - easier path... - any way to read out the panel brightness setting in PMDG 737???
2022-12-29 17:07
Avatar
TheGerman
Posts: 9
Never mind - I found a way to do it via FSUIP-PMDG - Event ID (mouse up/down) :rolleyes:
2022-12-30 00:19
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi TheGerman,

Welcome to MobiFlight!

The behavior you describe is normal. You manipulate direct the MAX7219 and this ship can only be "dimmed in 16 steps (0 - 15).
That can be read in the data sheet what can be downloaded here: https://www.analog.com/media/en/technical-documentation/data-sheets/max7219-max7221.pdf

Further questions? Contact me on Discord
Grüße,
Stephan (Time: UTC+2)
2022-12-30 23:26
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi....
Your basic idea was OK but as you find out its not logical ....

Your Panel Brightness must be sync with SIM Brightness.
So its not a good idea to handle 2 Systems with the Encoder simultary cause the MF Var and the Sim Bright are not sync.

Solution:

Way A .... Controll the Homecockpit Brightness by read the Sim Brightness ( What you cantroll by your Encoder)
Way B ... Set with the Encoder a Mobiflight Var that controll the Homecockpit Brightness (0-15) and also use THIS Var with a "Input Action" to controll the Sim Brightness.

So.... In easy words.
Controll both with one Encoder is correct... But not controll each individual... Controll just ONE and let the other controlled by the one you set already.
Good Luck !
2023-01-05 22:31
icon