🤖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

    Core 2
    4
    7
    685
    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
      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
        Genesis17 Banned @matthiMarschi
        last edited by

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

          Has anybody the schematics to the Core2 V1.1?

          felmueF 1 Reply Last reply Reply Quote 0
          • felmueF
            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
              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
                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
                  HolgerRauls @matthiMarschi
                  last edited by

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

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