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
tonymon
Posts: 2
Hi, I saw in this new version now there is the possibility to use up to 68 buttons (new pins) with Arduino Mega.Thank you fro this amazing update!

I have a very stupid question where I have not find the answer nowhere.

Arduino mega has 53 digital pins. In mobiflight I can see I can only start from pin number 2 (0 and 1 are not in the list). This mean digital pins usable are 51.
Then with this new version I assume I can use also the analogic pins (starting with A0). Arduino mega has 15 analogic pins. I assume I can use now all of them. So, 51 digital pins +15 analogic pins = 66 in total (I have not counted the pin 0 and 1). Am I right?

So, in this case, since in mobiflight the selction of pins are only numerics, I assume that the pin 54 match the physical PIN A0 of the Arduino mega. AM I right?

THank you so much!

Best Regards, Antonio.
2020-10-24 08:35
Avatar
Challenger
Posts: 43
Hi Antonio,
An Arduino Mega has 70 I/Os numbered from 0 to 69. 54 digital and 16 analog. Digital from 0 to 53 = 54 and analog from 54 to 69 = 16 (A0 to A15).
In MF there are 3 pins not usable: number 0,1 and 69. Number 0 and 1 are reserved vor comunications, number 69 was forgotten to implement. So you have 67 I/Os in total for use.
2020-10-24 09:33
Avatar
tonymon
Posts: 2
You are absolutely right! I'm started to count the A0 like a null pin :D

Thank you for clarified me this! absolutely helpful!

Thanks again! :thumbup:
2020-10-24 09:47
icon