#Custom code

1 messages · Page 1 of 1 (latest)

cerulean summit
#

is it possible to write code for arduino that communicates with mobiflight so that for example I make sure that mobiflight sends a variable over serial and that I then process the variable with my arduino how I want, so that I am not only stuck with the standard presets?

small shadow
# cerulean summit is it possible to write code for arduino that communicates with mobiflight so th...

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.

frail night
#

What are you actually trying to do? What values are you trying to read and what output are you trying to set?

cerulean summit
#

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

frail night
#

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.

small shadow
#

Ahh ok, the issue is not sending the value, it is the output device not being supported in standard firmware.

cerulean summit
#

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

small shadow
#

The Connector can then decide what event to trigger based on the value received.