🤖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

    Scheduled Pinned Locked Moved SOFTWARE
    3 Posts 1 Posters 2.2k Views
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post