UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import module
import time
setScreenColor(0x222222)
relay4 = module.get(module.RELAY4)
relay4_0 = relay4.init_i2c_address(0x26)
while True:
relay4_0.set_all_relay_state(1)
wait(1)
relay4_0.set_all_relay_state(0)
wait(1)
wait_ms(2)
relay4_0.get_adc_12bit_value(0)
relay4_0.get_adc_12bit_value(1)
relay4_0.get_adc_8bit_value(0)
relay4_0.get_adc_8bit_value(1)
relay4_0.get_relay_status(1)
relay4.init_i2c_address(0x26)
relay4_0.set_all_relay_state(1)
relay4_0.set_i2c_address(0x26)
relay4_0.set_relay_state(1, 1)