UIFlow Guide
Obtain atmospheric CO2L concentration, temperature, humidity and atmospheric pressure data collected by Unit CO2L
from m5stack import *
from m5ui import *
from uiflow import *
import unit
setScreenColor(0x222222)
co2l_0 = unit.get(unit.CO2_SCD41, unit.PORTA)
co2l_0.start_periodic_measurement()
while True:
print(co2l_0.co2)
print(co2l_0.data_isready())
print(co2l_0.get_temperature_offset())
print(co2l_0.get_sensor_altitude())
print(co2l_0.serial_number())
wait_ms(2)
co2l_0.stop_periodic_measurement()
co2l_0.factory_reset()
co2l_0.force_calibration(400)
print(co2l_0.get_calibration_enabled())
print(co2l_0.data_isready())
print(co2l_0.get_sensor_altitude())
co2l_0.read_sensor_measurement()
print(co2l_0.serial_number())
print(co2l_0.get_temperature_offset())
co2l_0.persist_settings()
co2l_0.sleep_mode()
print(co2l_0.co2)
co2l_0.reinit()
co2l_0.self_test()
co2l_0.set_ambient_pressure(0)
co2l_0.set_calibration_enabled(1)
co2l_0.set_sensor_altitude(0)
co2l_0.set_temperature_offset(4)
co2l_0.single_shot_measurement_all()
co2l_0.single_shot_measurement_ht()
co2l_0.start_low_periodic_measurement()
co2l_0.start_periodic_measurement()
co2l_0.wake_up()