UIFlow Guide
获取 ENV 采集的温度,湿度,大气压强数据
from m5stack import *
from m5ui import *
from uiflow import *
import unit
setScreenColor(0x222222)
env_0 = unit.get(unit.ENV, unit.PORTA)
while True:
print(env_0.temperature)
print(env_0.humidity)
print(env_0.pressure)
wait_ms(2)
print(env_0.temperature)
print(env_0.humidity)
print(env_0.pressure)
env4_0.set_mode(0xFD)
print(env4_0.get_mode)