UIFlow Guide
获取传感器获取的物体中心位置温度和最高,最低温度
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)