UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import time
import unit
setScreenColor(0x222222)
ncir2_0 = unit.get(unit.NCIR2, unit.PORTA)
ncir2_0.init_i2c_address(0x5A)
while True:
print((str('temperature:') + str((ncir2_0.temperature_measure()))))
print((str('emissivity:') + str((ncir2_0.emissivity_measure()))))
print((str('threshold value:') + str((ncir2_0.temperature_threshold(0x20)))))
print((str('buzzer frequency:') + str((ncir2_0.temp_buzzer_freq(0x40)))))
wait(1)
wait_ms(2)
ncir2_0.init_i2c_address(0x5A)
print(ncir2_0.button_status())
print(ncir2_0.buzzer_control())
print(ncir2_0.buzzer_duty())
print(ncir2_0.buzzer_freq())
print(ncir2_0.read_device_status(0xFE))
print(ncir2_0.chip_temperature_measure())
print(ncir2_0.emissivity_measure())
print(ncir2_0.rgb_led())
print(ncir2_0.temperature_measure())
print(ncir2_0.temp_buzzer_duty(0x44))
print(ncir2_0.temp_buzzer_freq(0x40))
print(ncir2_0.temp_alarm_interval(0x42))
print(ncir2_0.temp_alarm_led(0x30))
print(ncir2_0.temperature_threshold(0x20))
ncir2_0.save_config_setting()
ncir2_0.buzzer_duty(80)
ncir2_0.buzzer_freq(4000)
ncir2_0.buzzer_control(0x01)
ncir2_0.emissivity_measure(0.95)
ncir2_0.write_i2c_address(0x5A)
ncir2_0.rgb_led(50, 50, 50)
ncir2_0.temp_buzzer_duty(0x44, 80)
ncir2_0.temp_buzzer_freq(0x40, 4000)
ncir2_0.temp_alarm_interval(0x42, 100)
ncir2_0.temp_alarm_led(0x30, 50, 50, 50)
ncir2_0.temperature_threshold(0x20, 25)