🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [Solved]M5Stickc Plus 2 - Screen Inactivity

    SOFTWARE
    1
    3
    882
    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.
    • J
      jvillapa
      last edited by jvillapa

      Hello everyone

      I am currently programming a clock on an M5Stickc Plus2, and I am using

      M5.Lcd.fillScreen(TFT_BLACK);

      to suspend the use of the screen and save battery, and when the home button is pressed I activate the screen by printing the time for 5 seconds but I see that the screen is still active since I am only projecting a black background, is there a way to turn off the screen? until a press of one of the buttons is generated.

      Thank you all very much for the support you can offer me.
      Greetings

      1 Reply Last reply Reply Quote 0
      • J
        jvillapa
        last edited by

        I found these methods in the documentation, but I still see that the screen does not turn off completely.

        M5.Lcd.setBrightness(0);
        M5.Lcd.sleep();

        M5.Lcd.wakeup();
        M5.Lcd.setBrightness(200);

        1 Reply Last reply Reply Quote 0
        • J
          jvillapa
          last edited by

          I solved it as follows, in case anyone else has the same issue.

          analogWrite(BACKLIGHT, 0);
          delay(20);
          StickCP2.Power.lightSleep();
          

          greetings to all.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post