First, thank you for reading this thread!.
I am trying to control screen brightness PFD, ND, ECAM, etc, in Xplane Toliss, I have the datarefs however, I am having a hard time trying to make the potentiometer value be converted into a transform that the sim expects.
The dataref in question is: AirbusFBW/DUBrightness, which is an array and the display I want to control is index 2 in the array.
The sim expects 0 for screen off, and 1.0 for screen at max brightness. Below is what I have been able to do, note, my pots are placed upside down thus I need to reverse values in mobiflight.
Thank you!