UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import module
import time
setScreenColor(0x230c0c)
dualkmeter = module.get(module.DUAL_KMETER)
label4 = M5TextBox(194, 0, "Thermo F", lcd.FONT_Ubuntu, 0x710000, rotate=0)
dualkmeter.init_i2c_address(0x11)
print((str('Firmware:') + str((dualkmeter.get_firmware_version()))))
while True:
if dualkmeter.get_isready():
print((str('Kmeter channel:') + str((dualkmeter.rw_select_kmeter()))))
print((str('Temperature:') + str((dualkmeter.get_kmeter_thermo(1)))))
print((str('Internal temperature(CELSIUS):') + str((dualkmeter.get_kmeter_internal(1)))))
print((str('Thermocouple temperature:') + str((dualkmeter.get_kmeter_thermo(2)))))
print((str('Internal temperature(FAHRENHEIT):') + str((dualkmeter.get_kmeter_internal(2)))))
wait_ms(250)
wait_ms(2)
dualkmeter.rw_select_kmeter()
dualkmeter.get_firmware_version()
dualkmeter.get_kmeter_internal(1)
dualkmeter.get_isready()
dualkmeter.get_kmeter_internal_string(1)
dualkmeter.get_kmeter_thermo_string(1)
dualkmeter.get_kmeter_thermo(1)
dualkmeter.init_i2c_address(0x11)
dualkmeter.rw_select_kmeter(0)
dualkmeter.rw_select_kmeter(0)