UIFlow Guide
Retrieves and prints the center temperature, maximum temperature, and minimum temperature from the sensor.
from m5stack import *
from m5ui import *
from uiflow import *
import hat
setScreenColor(0x111111)
hat_thermal_0 = hat.get(hat.MLX90640)
while True:
print(hat_thermal_0.getCenterTmp())
print(hat_thermal_0.getMaxTmp())
print(hat_thermal_0.getMinTmp())
wait_ms(2)
hat_thermal_0.getCenterTmp()
hat_thermal_0.getMaxTmp()
hat_thermal_0.getMinTmp()
hat_thermal_0.getTmp(0, 0)
hat_thermal_0.setColorMaxTmp(35)
hat_thermal_0.setColorMinTmp(24)
hat_thermal_0.update(x=0, y=0, show=True, showCenter=True)