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

    Core2 V1.1 cannot control power LED

    Scheduled Pinned Locked Moved Core 2
    7 Posts 4 Posters 3.1k 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.
    • M Offline
      matthiMarschi
      last edited by

      I have now new Core2 V1.1. The power LED lights now blue (instead green), but the control with power.setPowerLED(True) or power.setPowerLED(False) is no more possible. What is the right control command?

      G H 2 Replies Last reply Reply Quote 0
      • G Offline
        Genesis17 @matthiMarschi
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • M Offline
          matthiMarschi
          last edited by matthiMarschi

          Has anybody the schematics to the Core2 V1.1?

          felmueF 1 Reply Last reply Reply Quote 0
          • felmueF Offline
            felmue @matthiMarschi
            last edited by

            Hello @matthiMarschi

            you can find it here.

            Thanks
            Felix

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

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

              Hello @matthiMarschi

              the blue LED by default indicates the battery charger state. If you want to control it, you'll need to set the mode to manual. See example here.

              Note: PR create here.

              Thanks
              Felix

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

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                matthiMarschi @felmue
                last edited by matthiMarschi

                @felmue thanx a lot! I use UiFlow1.1 and an example for LED control in python is here:

                from m5stack import *
                from m5stack_ui import *
                from uiflow import *
                import i2c_bus
                import time

                screen = M5Screen()
                screen.clean_screen()
                screen.set_screen_bg_color(0xFFFFFF)

                i2c0 = i2c_bus.easyI2C((21, 22), 0x00, freq=400000)
                i2c0.addr=(0x34)
                while True:
                i2c0.write_u8(0x69, 0x05)
                wait(1)
                i2c0.write_u8(0x69, 0x35)
                wait(1)

                1 Reply Last reply Reply Quote 1
                • H Offline
                  HolgerRauls @matthiMarschi
                  last edited by

                  @matthiMarschi This one worked fine for me: M5.Axp.SetLed(0);

                  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