#Button/Switches don't work

1 messages · Page 1 of 1 (latest)

wooden coral
#

My Buttons don't work in msfs

polar kernel
#

Activate logging mode and see if the button presses and releases are registered in the log. Please report back.

wooden coral
#

They are not registered even when I try to connect a wire between ground and my pin

polar kernel
#

Does Mobiflight detect your board OK?

#

Is the correct pin specified in the device config?

wooden coral
#

Yes it's detecting, my light for AP is working. I use a Arduino Micro pro and set the pin to 6 but it's not working even when I try to change the pin

#

Is it possible that the problem is in the config for the button action?

polar kernel
#

You just mentioned connecting the pin to ground does not register in Mobiflight

#

The logging mode does not care if you have an input config defined for that button

#

If you press it should be detected

#

If you are sure you have the correct pin, then I can only suspect your hardware is at fault. Either the pins in the pro micro are malfunctioning or the connections are wrong.

wooden coral
#

If the button is detected in Mobiflight then could a wrong configuration cause the problem?

polar kernel
#

If the button press is detected in Mobiflight, then you can be reasonably sure that your issue is configuration of the correct event.

wooden coral
#

Should I work with Event ID or msfs actions?

ionic root
#

yes there are basically three things that need to be set correctly:

  • The pin config under MobiFlight Modules - you can verify that this works with Logging mode: it shows OnPress and OnRelease events for buttons. This shows "No config found" until you get the next one defined:
#
  • The Input config, that selects that input device (button pin), and connects it to a sim event. Once the Input config is defined and has the device set, you get also a log message about that.
#
  • Simulator event that does the action in the sim. This can be MSFS2020 event, XPlane Command or Dataref, or FSUIPC offset or EventID for Prepar3D/FSX
#

Then on MSFS 2020 it depends on the add-on aircraft what events work - some planes use the common events, and ideally these would work for all planes, but some plane makers needed to write their own replacement systems and functionality and had to bypass the built in features in the sim, so it could be the events are completely custom to that plane. Thus we have the presets for a lot of popular planes, but for the less common ones, one needs to generally look them up manually.

polar kernel
wooden coral
#

I use msfs2020 A320 Fly by wire

#

The button is detected in Mobiflight, seems to be a problem in the config

polar kernel
#

Which version of FBW, which function, which event?

wooden coral
#

I don't know the exact version but this is my config for the Auto pilot button

polar kernel
#

I meant stable, or dev version

wooden coral
#

It should be stable I think...

polar kernel
wooden coral
#

I don't understand what you mean with mcdu but I tied it off the ground

#

I also tried to press the AP with my mouse and it's working but not with my button

polar kernel
#

The event works AFAIK

#

But I use the dev version

#

There is a similar event for the dev version. Try it and see.

wooden coral
#

I'am so an fucking idiot, I didn't see that I used the normal a320...

#

Changed it to fbw and it works