i did a setup with ESP32 NodeMCU and a 2.8" SPI Touch ILI9341 with SD card.
Correct name: ESP32 NodeMCU Module WLAN WiFi Dev Kit C Development Board with CP2102
Currently i connected the LED pin of the display to the 3.3 V pin of the ESP32.
However, i am wondering if i can turn on / off the display via code.
One possibility would be to connect the LED pin to a GPIO pin and set it to OUTPUT.
I measured the current between 3.3 V pin and LED pin and its only 2.4 mA. This is really surprising me! Is something wrong? I thing the GPIO pins are capable of ~40-50 mA?
Other possibility would be to use a transistor i suppose. Which one should i chose? (however i want to avoid this due to package reason).
I am using the TFT_eSPI library and didnt find any command to control brightness or on / off. Is there a command?
Can someone help me? Thank you alot!