UIFlow Guide
设置引脚输出高电平1秒,输出低电平1秒
from m5stack import *
from m5stack_ui import *
from uiflow import *
import machine
import time
while True:
pin0.on()
wait(1)
pin0.off()
wait(1)
wait_ms(2)
machine.Pin(0, mode=machine.Pin.IN, pull=machine.Pin.PULL_UP)
pin0.on()
pin0.off()
pin0.value(0)
str(pin0.value())