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
ChrisEllul
Posts: 2
Hi all.

I am new to this website.

I am trying to do the first tutorial, parking break led.

I followed all the steps one after another.

When trying to select 'pin' on the display tab as a type nothing is showing in the drop down menu.

When re-checking Extras/Settings/Modules/Mobiflight Mega - dropdown everything seems to be saved correctly.

After restarting everything, changing, swapping, saving, new projects... same problem is occuring.

Any idea of what I am doing wrong please?

Thanks Chris
2019-08-31 22:35
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Please check your Device Settings Tab again..... Do you choose "LED Output Pin" There ?
Remember to a simmular request in the past when a other user choose "Button" instead.

If staht is not the problem please Reset your Mega completly ( Use the EEPROM Clear sketch in the Arduino IDE ). In some rare cases a Mega include a issue . Normaly this is fixed after complete reset of Mega and a new Firmware Upload.

Please report experience.
Good Luck !
2019-08-31 22:53
Avatar
ChrisEllul
Posts: 2
Dear Pizman,

Thanks for your reply, I did reset the EEPROM of my Mega from Arduino ide and now is working fine.

For anyone that might encounter this problem, these are the steps that I followed.

1. Opened Arduino IDE
2. Configured the right Arduino (in my case Mega 2560)
3. Copied the below Sketch
4. Uploaded the Sketch
5. Followed MobiFlight tutorial again.

Thanks again for your great help Pizman
______________________________________________________
/* https://www.arduino.cc/en/Tutorial/EEPROMClear
/*
* EEPROM Clear
*
* Sets all of the bytes of the EEPROM to 0.
* Please see eeprom_iteration for a more in depth
* look at how to traverse the EEPROM.
*
* This example code is in the public domain.
*/

#include <EEPROM.h>

void setup() {
// initialize the LED pin as an output.
pinMode(13, OUTPUT);

/***
Iterate through each byte of the EEPROM storage.

Larger AVR processors have larger EEPROM sizes, E.g:
- Arduno Duemilanove: 512b EEPROM storage.
- Arduino Uno: 1kb EEPROM storage.
- Arduino Mega: 4kb EEPROM storage.

Rather than hard-coding the length, you should use the pre-provided length function.
This will make your code portable to all AVR processors.
***/

for (int i = 0 ; i < EEPROM.length() ; i++) {
EEPROM.write(i, 0);
}

// turn the LED on when we're done
digitalWrite(13, HIGH);
}

void loop() {
/** Empty loop. **/
}
2019-09-01 11:29
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
:thumbup:

Mostly this happens if the Mega is not brand new and include old code form further usage.
Nice it work for you,

About the Code.....
To Prevent a misstake while copy/paste this text....
The EEPROM CLEAR Sketch is also include in the "examples" of Arduino IDE.....
Simple Choose it from the List..... Same Result as copy/paste.
Good Luck !
2019-09-01 13:55
icon