Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Deep sleep with LILYGO ESP32 T-Display v1.1

    Technical Discussion
    1
    1
    176
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      memi last edited by

      I have a LILYGO ESP32 T_Display v1.1

      I try to be in deep sleep mode with this board. I am not able to go below 36ma. In principle I should reach something below 1ma

      Nothing is connected on the board and the small red LED has been removed.

      I did a lot of research and did a ton of testing.

      Can anybody help me ?

      Here is my code:

      #include <TFT_eSPI.h> // Hardware-specific library
      #include <SPI.h>
      
      TFT_eSPI tft = TFT_eSPI();
      
      void setup() {
      
      tft.init();
      
      delay(10000);
      
      tft.writecommand(ST7789_DISPOFF);// Switch off the display
      delay(5);
      tft.writecommand(ST7789_SLPIN);// Sleep the display driver
      delay(5);
      pinMode(TFT_BL,OUTPUT);
      digitalWrite(TFT_BL, LOW); // Should force backlight off
      
      //gpio_hold_en(GPIO_NUM_4);
      //gpio_deep_sleep_hold_en();
      esp_deep_sleep_start();
      
      }
      
      void loop() {
        // put your main code here, to run repeatedly:
      
      }
      

      Thank's a lot !

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors