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

    ATOMS3 Screen Backlight → Want to Switch OFF

    Scheduled Pinned Locked Moved Atom
    3 Posts 3 Posters 4.1k Views 1 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.
    • H Offline
      hugo.reed
      last edited by

      Hello Here,
      In order to only use my AtomS3 for a BLE application and connect it via USB-C to a small battery, I'd like to cut the backlight completely in order to save energy and tiny heat when long time ON, ∆ and also use an OTII-ARC tool to measure the consumption of my program and the AtomS3 in this BLE advertising mode,

      • without over-consumption due to the fact that the backlight is always ON - even if the pixels are black.
        I understand that the lcd is a N085-1212TBWIG06-C08 ; on the M5STICK and M5STICKplus I was able to cut the screen with the following code: (thanks community)

      *void turnOffScreen() {
      // try to turn off screen - https://community.m5stack.com/topic/1025/m5stickc-turn-off-screen-completely/11
      // OK
      Wire1.beginTransmission(0x34);
      Wire1.write(0x12);
      Wire1.write(0b01001011); // LDO2, aka OLED_VDD, off
      Wire1.endTransmission();

      // not tested
      /M5.begin(0,1,1);
      M5.Axp.SetLDO2(false);
      M5.Axp.SetLDO3(false);
      /

      //M5.Lcd.setBrightness(0);
      //M5.Axp.ScreenSwitch(false);
      }*

      The reason I'm here is that this code doesn't work on the ATOMS3 and I haven't figured out how to do it yet.
      Can you help me?
      Thank you in advance

      • Tyler
      1 Reply Last reply Reply Quote 0
      • felmueF Online
        felmue
        last edited by

        Hello @hugo-reed

        according to the M5AtomS3 documentation the backlight is connected to GPIO16. So setting that to LOW should turn it off. (Note: not tested)

        digitalWrite(16, LOW);
        

        Note: GPIO16 gets initialized and set to HIGH in function M5Display::begin().

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          frameworklabs @felmue
          last edited by

          Alternatively - using M5Unified you can also call:

          M5.Display.sleep();

          To wake it up again use:

          M5.Display.wakeup();

          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