DIS08070H : CrowPanel 7.0" HMI ESP32 Display - Screensaver

edited February 23 in Elecrow HMI Display

Hi,
I am looking for the proper way to turn off/blank the display to prevent LCD burn in. I use SquareLine studio to generate my Arduino code. I do turn off the backlight, but i don't think that is enough.
Any help would be appreciated.
Thanks

  • Peter

Comments

  • edited February 23

    I tried this with mine and it works. And starts up when you reboot (or attach a pin to it):

    #include <esp_sleep.h>
    
    void shutdown(lv_event_t * e)
    {
        esp_deep_sleep_start();
    }
    

    [Help edited into a code block]

  • Thanks for the reply, I am looking to just blank the LCD to prevent any kind of burn in of the display leaving the processor running.

  • @pmarkiew said:
    Hi,
    I am looking for the proper way to turn off/blank the display to prevent LCD burn in. I use SquareLine studio to generate my Arduino code. I do turn off the backlight, but i don't think that is enough.
    Any help would be appreciated.
    Thanks

    • Peter

    Hi, I have not been able to get my screen to turn off. I read here that you did. How did you do it? I have tried several ways and have not succeeded. I have a CrowPanel 7.0” HMI ESP32 Display. Could you help me please.

  • edited February 23
    #define BACKLIGHT 2
    //In setup()
    pinMode(BACKLIGHT, OUTPUT); // Initialize backlight pin
    
    digitalWrite(BACKLIGHT, LOW);  //Off
    digitalWrite(BACKLIGHT, HIGH); //On
    

    [Help edited into a code block]

  • Is there a way to change the screen light with tft.setbrightness? I am putting the function in ui_events.c and it does not recognize it
    I also tried with the pinmode(BACKLIGHT, OUTPUT) way and it doesn't recognize "backlight"

  • Change BACKLIGHT to 2
    The pound sign # didn't show up in front of the "define" statement. should be : #define BACKLIGHT 2

Sign In or Register to comment.