Hello @felmue,
thank you very much for your quick support, it really helped me.
It didn't work in my "big" program, but I wrote a small test program, and it fully meets the requirements:
#include <M5StamPLC.h> void my_set_backlight(bool o) { PI4IOE5V6408_Class p; p.setDirection(7, true); // false input, true output p.digitalWrite(7, !o); // false on, true off } void printAndWait(String s) { M5StamPLC.Display.println(" " + s); delay(4000); } void setup() { Serial.begin(115200); M5StamPLC.begin(); M5StamPLC.Display.setTextSize(3); } void loop() { M5StamPLC.Display.fillScreen(TFT_BLACK); M5StamPLC.Display.setCursor(0, 10); printAndWait("Test 1"); printAndWait("Test 2"); my_set_backlight(false); printAndWait("Test 3"); my_set_backlight(true); printAndWait("Test 4"); }You can see it not only in the dark screen, but also in the power consumption, which is reduced by about 20%.
I suspect that in my "big" program, someone is turning the lights back on (and working against me).
Best regards,
Uwe