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);