UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import unit
setScreenColor(0x222222)
KMeter_0 = unit.get(unit.KMETER, unit.PORTA)
KMeter_0.init_i2c_address(0x66)
print((str('firmware version:') + str((KMeter_0.get_firmware_version()))))
print((str('I2C address') + str((KMeter_0.rw_i2c_address()))))
while True:
print((str('thermocouple:') + str((KMeter_0.get_kmeter(1)))))
print((str('Internal Temp:') + str((KMeter_0.get_kmeter(2)))))
wait_ms(2)
KMeter_0.init_i2c_address(0x66)
print(KMeter_0.get_firmware_version())
print(KMeter_0.rw_i2c_address())
print(KMeter_0.rw_sleep_time())
print(KMeter_0.get_kmeter(1))
KMeter_0.rw_i2c_address(0x66)
KMeter_0.rw_sleep_time(5)
KMeter_0.set_wakeup_timer(True)