#Custom code
1 messages · Page 1 of 1 (latest)
I think you don't need custom firmware for Arduino at all.
In Mobiflight, the arduino boards only serve to send input events from buttons and display status in other devices. What is done with input and output is done by MF Connector.
You can do far more than just using presets in MF Connector because you can put whatever code you wish to send to the simulator in the input code boxes.
Just the same with the output code boxes.
What are you actually trying to do? What values are you trying to read and what output are you trying to set?
For example, I have a number of OLED screens lying around and I thought that if I could get the variable for altitude, for example, from mobiflight, I could then write the code myself to put it on the screens. Because I don't think they were supported
For something like that yes, you'd need to do a custom firmware. We have support for custom output devices for this very reason. People have already done OLED stuff before though, try searching the discord for OLED.
Ahh ok, the issue is not sending the value, it is the output device not being supported in standard firmware.
For example, I also have a number of buttons in a kind of grid with resistors, so I need Arduino code to determine which one is pressed. I think I'm going to see if there's another way to connect to msfs. Thanks anyway for the help, but I don't think Mobiflight is suitable for my situation at the moment
if the buttons are connected to an analog pin in the arduino and each button has a different voltage reading, then that can be read by the Mobiflight firmware and sent to the Connector as a value 0 to 1023.
The Connector can then decide what event to trigger based on the value received.