
UiFlow チュートリアル
Set the pin to output a high level for 1 second and a low level for 1 second
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())