UIFlow Guide
Wait for 5 seconds to power on, then power off after one second.
from m5stack import *
from m5stack_ui import *
from uiflow import *
import time
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
power.restart_after_seconds(0)
wait(1)
power.powerOff()
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)