UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import time
import unit
setScreenColor(0x222222)
relay2_0 = unit.get(unit.RELAY2, unit.PORTA)
while True:
relay2_0.set_value(3, 1)
wait(1)
relay2_0.set_value(3, 0)
wait(1)
wait_ms(2)
relay2_0.set_value(ch, status)