maciekish Posted September 13, 2022 Share Posted September 13, 2022 Hi, I'm having a hard time finding the CDU backlight brightness value from the sim. I can only find the rocker-switch which is a simple increase/decrease: I'm currently keeping my own brightness value in memory on the Arduino but it gets desynchronized when the game reloads. Is the actual value from the sim available in DCS-BIOS? Using this for now: // Backlight Control via pin 46, requires a hardware mod to the TFT shield. unsigned int brightness = 255; // The CDU in DCS starts at max brightness, using the same initial value help with synchronization. void onCduBrtChange(unsigned int newValue) { if (newValue == 0) { if (brightness > 25) { brightness -= 25; } else { brightness = 0; } } else if (newValue == 2) { if (brightness < 230) { brightness += 25; } else { brightness = 255; } } analogWrite(46, brightness); } DcsBios::IntegerBuffer cduBrtBuffer(0x10fa, 0x0003, 0, onCduBrtChange); Link to comment Share on other sites More sharing options...
Recommended Posts