UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import time
import unit
setScreenColor(0x222222)
relay4_0 = unit.get(unit.RELAY4, unit.PORTA)
relay4_0.set_mode(1)
while True:
relay4_0.set_relay_status(1, 1)
relay4_0.set_relay_status(2, 1)
relay4_0.set_relay_status(3, 1)
relay4_0.set_relay_status(4, 1)
wait(1)
relay4_0.set_relay_status(1, 0)
relay4_0.set_relay_status(2, 0)
relay4_0.set_relay_status(3, 0)
relay4_0.set_relay_status(4, 0)
wait(1)
wait_ms(2)
relay4_0.set_mode(1)
relay4_0.set_relay_status(ch, status)
relay4_0.set_led_status(ch, status)
relay4_0.get_mode()
relay4_0.get_relay_status(ch)
relay4_0.get_led_status(ch)