Hello,
I was reading some discussion on the PMDG channel here on the Discord about the annunciator test/bright/dim switch. I am looking to add the ability to dim my annunciators.
I understand that I need to check the value of the light test switch when it is in the dim position. From what I've read I'm thinking this could then be stored in a MobiFlight variable but I'm not sure the best way this should be implemented in terms of the input and output configuration.
I already have a couple of my annunciators configured to display based on their presets from Hubhop, but I have some questions on how to best implement the dim functionality. These are on PWM pins on my Arduino.
-
Is it possible to just capture a value from a SimConnect variable and then store it in a MobiFlight variable without a physical input change? I have used the variables so far but only in combination with a physical input or output. Right now I do not yet have a physical light test switch, so I would need to capture the change in the sim variable value based on the virtual switch.
-
I am still learning about the RPN syntax. I'm wondering how I would properly set my brightness by either modifying the preset, or is this better performed as a transform? My thoughts is I could check against the Dim variable and then set the output accordingly.
-
I also thought I saw someone mention about config references, is this something that would be best used here for reusability and/or getting the MobiFlight variable for use in the preset code?
Thanks for your help,
Sean