UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import unit
setScreenColor(0x222222)
angle8_0 = unit.get(unit.ANGLE8, unit.PORTA)
while True:
print(angle8_0.get_button_status())
print(angle8_0.get_adc12_raw(0))
print(angle8_0.read_status(0xFE))
angle8_0.set_LED_RGB24(0, 50, 50, 50, 50)
wait_ms(2)
print(angle8_0.get_adc12_raw(0))
print(angle8_0.get_adc8_raw(0))
print(angle8_0.get_button_status())
angle8_0.init_i2c_address(0x43)
print(angle8_0.read_status(0xFE))
angle8_0.set_i2c_address(0x43)
angle8_0.set_LED_RGB24(0, 50, 50, 50, 50)
angle8_0.set_LED_RGB24_From(0, 8, 50, 50, 50, 50)