UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import module
setScreenColor(0x222222)
hmi = module.get(module.HMI)
hmi.init_i2c_address(0x41)
while True:
print((str('counter value:') + str((hmi.get_counter_value()))))
print((str('increment value:') + str((hmi.get_increment_value()))))
print((str('button status:') + str((hmi.get_button_status(0)))))
print((str('Firmware version:') + str((hmi.get_device_status(0xFE)))))
wait_ms(2)
hmi.get_button_status(0)
hmi.get_counter_value()
hmi.get_device_status(0xFE)
hmi.get_increment_value()
hmi.init_i2c_address(0x41)
hmi.reset_counter_value()
hmi.set_counter_value(1000)
hmi.set_i2c_address(0x41)
hmi.set_LED(0, 1)