UIFlow Guide
等待5秒后开机,灯带一秒后关机
from m5stack import *
from m5stack_ui import *
from uiflow import *
import time
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
screen.set_screen_brightness(30)
screen.set_screen_bg_color(0xff0000)
power.setPowerLED(True)
wait(1)
power.restart_after_seconds(2)
screen.set_screen_bg_color(0xff0000)
screen.set_screen_brightness(30)
power.setPowerLED(True)
str(power.getChargeState())
str(power.getChargeState())
str(power.getBatPercent())
str(power.getBatCurrent())
str(power.getBatCurrent())
str(power.getVBusVoltage())
str(power.getPmuInTemp())
power.powerOff()
power.setChargeCurrent(power.CURRENT_100MA)
screen.set_screen_brightness(30)
power.setPowerLED(True)
power.setBusPowerMode(1)
power.restart_after_seconds(0)
power.restart_on(minutes=0, hours=0, date=1, weekday=0)