I am running out of intelligence trying to control a Lolin 2.4 Inch TFT shield. I connected the shield via the official TFT connector to a Lolin D32 Pro. I am using the ILI9341 libary from Adafruit. With the libary it is no porblem controlling the display. Unfortunately, as soon as I put the esp32 into Deep Sleep, the display goes white but the background illumination stays on. Does someone know, how I can trun off the background illumination? As far as I understood, the background light is not controlled via the ILI9341. Instead I tried putting the GPIO32 on Low, since accoring to the schema of the Lolin TFT cable it is responsible for the TFT_Led Unfortunately that does not work either
The backlight of this shield is ON as long as there's power on the 3.3V pin, unless you make GPIO 32 an output and pull it low.
In deep sleep, however, GPIO 32 will stop acting as a pulled down output pin but the esp32 keeps its 3.3V output pin powered, so the backlight will switch ON.
You could power the display over a mosfet, controlled by a GPIO.