So I'm trying to build a thing where when I press a button it displays an image for 20 seconds. I want long battery life so after 20 seconds I want to turn off the screen to save battery life.
I have been able to accomplish the screen going on, hitting a button to display an image and switch when I hit a different button. What I have no idea is how to turn the screen off. I've been able to figure out from forums there is turning the TFT off and turning the backlight off. I think I want the backlight to go off as that is what saves the most battery life.
I have the screen pin Lite plugged into D6. I assume I have to set that to something?
}
if (buttonStateBlue == HIGH) {
//Code to turn screen on
reader.drawBMP("/redSquare.bmp", tft, 0, 0); //display an image on screen
Serial.print("blue button on"); // serial log to confirm it worked
Serial.print('\n');
delay(20000); //wait 20 seconds
//Code to turn screen off
}