04-21-2019, 10:25 PM
I don't use a 'real' Pi touchscreen, but a different (smaller and cheaper) one from China. It lacks some features, but both the image quality and the touch are very good. When the screensaver kicks in, the backlight remains on. This particular screen has a switch on the back to turn on/off the backlight. So if I could somehow get a spare gpio pin to go high or low when the screen goes blank, I can switch the backlight with the help of a single transistor or FET.
Does anybody know what command is issued to make the screen go blank? Or what to do to make an unused GPIO pin change state on screen blank? (When I say an 'unused pin' it's because I use a I2C Dac but that leaves enough pins free to use.)
Does anybody know what command is issued to make the screen go blank? Or what to do to make an unused GPIO pin change state on screen blank? (When I say an 'unused pin' it's because I use a I2C Dac but that leaves enough pins free to use.)