XPLMSetAvionicsBrightnessRheo

XPLM_API void       XPLMSetAvionicsBrightnessRheo(
                         XPLMAvionicsID       inHandle,
                         float                brightness);

Sets the brightness setting’s value, between 0 and 1, for the screen of the cockpit device with the given handle.

If the device is bound to the current aircraft, this is a shortcut to setting the brightness rheostat value using the sim/cockpit2/switches/instrument_brightness_ratio[] dataref; this sets the slot in the instrument_brightness_ratio array to which the device is bound.

If the device is not currently bound, the device keeps track of its own screen brightness rheostat, allowing you to control the brightness even though it isn’t connected to the instrument_brightness_ratio dataref.