Core2 V1.1 cannot control power LED
-
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?
-
This post is deleted! -
Has anybody the schematics to the Core2 V1.1?
-
-
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 -
@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 timescreen = 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) -
@matthiMarschi This one worked fine for me: M5.Axp.SetLed(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