UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import module
setScreenColor(0x222222)
pm25_sht20 = module.get(module.PM25)
while True:
print((str('SPM PM1.0:') + str((pm25_sht20.get_pm1_0_factory()))))
print((str('SPM PM2.5:') + str((pm25_sht20.get_pm2_5_factory()))))
print((str('SPM PM10:') + str((pm25_sht20.get_pm10_factory()))))
print((str('ATE PM1.0:') + str((pm25_sht20.get_pm1_0_air()))))
print((str('ATE PM1.0:') + str((pm25_sht20.get_pm2_5_air()))))
print((str('ATE PM1.0:') + str((pm25_sht20.get_pm10_air()))))
print((str('>3.0um Particles:') + str((pm25_sht20.get_num_above_0_3()))))
print((str('TEM:') + str((pm25_sht20.get_sht20_temperature))))
print((str('HUM:') + str((pm25_sht20.get_sht20_humidity))))
wait_ms(2)
from m5stack import *
from m5ui import *
from uiflow import *
import module
setScreenColor(0x222222)
pm25_sht30 = module.get(module.PM25_SHT30)
while True:
print((str('SPM PM1.0:') + str((pm25_sht30.get_pm1_0_factory()))))
print((str('SPM PM2.5:') + str((pm25_sht30.get_pm2_5_factory()))))
print((str('SPM PM10:') + str((pm25_sht30.get_pm10_factory()))))
print((str('ATE PM1.0:') + str((pm25_sht30.get_pm1_0_air()))))
print((str('ATE PM1.0:') + str((pm25_sht30.get_pm2_5_air()))))
print((str('ATE PM1.0:') + str((pm25_sht30.get_pm10_air()))))
print((str('>3.0um Particles:') + str((pm25_sht30.get_num_above_0_3()))))
print((str('TEM:') + str((pm25_sht30.get_sht30_temperature))))
print((str('HUM:') + str((pm25_sht30.get_sht30_humidity))))
wait_ms(2)
pm25_sht20.get_num_above_0_3()
pm25_sht20.get_pm1_0_factory()
pm25_sht20.get_sht20_humidity
pm25_sht20.get_sht20_temperature
pm25_sht30.get_sht30_humidity
pm25_sht30.get_num_above_0_3()
pm25_sht30.get_pm1_0_factory()
pm25_sht30.get_sht30_temperature()