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

    M5StickC: turn off screen completely

    Scheduled Pinned Locked Moved M5 Stick/StickC
    25 Posts 11 Posters 108.6k Views 3 Watching
    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 Offline
      Multihelix @maxstack
      last edited by

      @maxstack - Yes, I used ESP DeepSleep set to wake on Button A being pressed, but I would say that the 5 hour time was not under ideal conditions, as I occasionally woke up the device to confirm it was still working and to check the time - a resonable activity for a watch.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        spiffmonious @Multihelix
        last edited by

        @multihelix Can you post a link to your watch code?

        1 Reply Last reply Reply Quote 0
        • K Offline
          klimbot @dda
          last edited by klimbot

          @dda said in M5StickC: turn off screen completely:

          I did a simple test: with only REG 28H the screen stays slightly warm. With both 28H and 10H, the screen cools off after a while. Hardly a scientific test, I know, but seems to point to the need to set both registers.

          I'm looking at this thread to hopefully implement a complete screen turn off, but am not sure what register mask to use (based on quoted post)

          Here is what I have, the screen is off but hard to know if the screen has actually been disabled.

          void turnOffScreen() {
          Wire1.beginTransmission(0x34);
          Wire1.write(0x10);
          Wire1.write(0b00000000); // 7-3=? | 2=EXTEN | 1=? | 0=DC-DC2
          Wire1.endTransmission();

          Wire1.begin(21, 22);
          Wire1.beginTransmission(0x34);
          Wire1.write(0x12);
          Wire1.write(0b01001011); // 7=? | 6=EXTEN | 5=? | 4=DC-DC2 | 3=LDO3 | 2=LDO2 | 1=DC-DC3 | 0=DC-DC1
          Wire1.endTransmission();

          Wire1.beginTransmission(0x34);
          Wire1.write(0x28);
          Wire1.write(0b00001111); // 7-4=LDO2 | 3-0=LDO3
          Wire1.endTransmission();
          }

          1 Reply Last reply Reply Quote 0
          • F Offline
            ForestRupicolous
            last edited by ForestRupicolous

            @klimbot: I think you have to turn LDO3 and LDO2 off, in your code only LDO2 is off. Take a look at this picture: https://docs.m5stack.com/assets/img/product_pics/core/minicore/m5stickc/m5stickc_05.webp

            1 Reply Last reply Reply Quote 0
            • V Offline
              viandou
              last edited by

              This is how I init my M5StickC in a full black screen way.

              M5.begin(0,1,1);
              M5.Axp.SetLDO2(false);
              M5.Axp.SetLDO3(false);
              
              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