UIFlow Guide
数码管显示字符A
from m5stack import *
from m5ui import *
from uiflow import *
import time
import unit
setScreenColor(0x222222)
digi_clock_0 = unit.get(unit.DIGI_CLOCK, unit.PORTA)
digi_clock_0.init_i2c_address(0x30)
digi_clock_0.write_brightness(4)
while True:
digi_clock_0.write_char('A',0)
wait(1)
digi_clock_0.clear()
wait(1)
wait_ms(2)
igi_clock_0.init_i2c_address(0x30)
digi_clock_0.clear()
print(digi_clock_0.read_version())
digi_clock_0.write_brightness(0)
digi_clock_0.write_char('',0)
digi_clock_0.write_char_list('')
digi_clock_0.write_match_string('')
digi_clock_0.write_raw(0,0)