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
omegavale@hotmail.com
Posts: 5
Hello!
i tried to put 2 lcds displays, however, the second display mirrored the first one. The two were installed on different doors.
Is it possible to control different AP functions with a single encoder, changing functions with buttons?
And I didn't find the "hdg" function to increment or decrim anymore.

Thank for these amazing program.

Giovani
2021-10-18 02:10
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Multiple Problems.... So lets split up !

1. 2 LCD.
Posible on a Arduino MEGA ( 2 LCD max) ..... As i know not possible on a other Controller.
Ports are selected by the I2C Controller on the back of the Display ( mostly by jumpers).
If they use same adress, for sure both will show the same !
Means.... You need to create in MF 2 Devices on that Mega ( One for each Display) ..... and you must choose TWO different Adresses. And for sure the 2 Displays must use each one of these two adresses.
If you use a Display without posibility to change the Adress, then you need to work with 2 Megas..... Then only one Display each is used.... And then its no mater if the use same Adress, cause each is on a own Mega itself!

2. Mode Selectors.
Posible..... But in case we can not "read" a state of a switch at the moment we need to go a "bypass" for now.
Your Input Selector ( Button/Switch whatever) must write a "Mobiflight Variable".
For example a Button can write a variable "+1" on each Press.... Lets sey you need 4 Modes So you use a Formula like "if($=3,0,$+1)" in the Input Tab.
Means "If Value is 3 (Mode 4) then write "0" (Mode1) ELSE Add +1 to the Value. So your Value change on each press like 0,1,2,3,0,1,2,3,0,1,2,3 and so on.
Same would work with "($+1)%4"
Finally you create for your Device (lets say a encoder) 4 different Input Configs..... Each controll a other System like HDG,ALT,CRS,VS
Each config now use PRECONDITION and there you say "Only work if Value of MF Variable (You write with Button) = x
So e.g. HDG only work if Varibale is "0" ..... ALT only work if Variable is "1" and so on.


3. Event Problem

Here i can not help directly..... Each Sim and also each Aircraft can have own Variables.....
Tell us..... What SIM do you use..... What Aircraft do you use..... and What exactly you need to controll..... Then we can search for the correct Preset!
Good Luck !
2021-10-21 19:21
Avatar
omegavale@hotmail.com
Posts: 5
I made the settings as I understood. And how do I make the encoder work only with the parameter selected by the button? I couldn't attach the images of my configuration to the forum for you to check if it's correct, how do I do it? Sorry, my English is not very good so I get confused.

Thanks
2021-10-22 23:24
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Use Forum Search for "precondition"
Also check a lot of youtube Videos for that.
Additional in Discord there are a lot of postings..... Also search for "Precondtion" and "Placeholder"

I´m sorry i get not a good guide on the hand.
Thats why sebastian talks since years we should make some "ToDo Videos"..... Special the "Controll Things in case of Precon ( Button select)" is one of the top things we need to show by a little 5-10 min Video in English a.s.a.p.

If you really not be able to solve ( belive all users before was bale to do) ...... Then contact a Moderator on Discord.... Then we can try to make a Shared Screen/Voice seasson and guide you personal.
Good Luck !
2021-10-27 21:48
Avatar
salo2k4
Posts: 9
Hello. i have two oled LCDs (16x2) which i plan to use in parallel on Mega. but it use only two adresses 0x79 and 0x78 which a can choose by 0-resistor. problem is Moby can not use that adresses. only 0x20...0x3f possible. How can resolve it?
2022-04-06 16:52
icon