TVOC/Co2 Uiflow Problem
-
Hi there
The newly introduced Uiflow for TVOC does not work properly, it does not give me any CO2 and TVOC back, does all the time reports 400/0. Works without any problem in Arduino.
Can you please have a look at ? Would be a benefit for me to use it thru Uiflow.
Thanks and Regards
aek56 -
Same here.
I tried this and this keep displyaing eCO2 400...
Any idea?from m5stack import *
from m5ui import *
from uiflow import *
import unitsetScreenColor(0x111111)
tvoc0 = unit.get(unit.TVOC, unit.PORTA)CVO = None
MAX = NoneH2T = M5TextBox(53, 19, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
H2 = M5TextBox(0, 19, "H2", lcd.FONT_Default, 0xFFFFFF, rotate=0)
BT = M5TextBox(21, 48, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
TVOCT = M5TextBox(63, 80, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
BTVOCT = M5TextBox(72, 112, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
eco2T = M5TextBox(63, 136, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
B = M5TextBox(0, 48, "B.", lcd.FONT_Default, 0xFFFFFF, rotate=0)
TVOC = M5TextBox(0, 80, "TVOC", lcd.FONT_Default, 0xFFFFFF, rotate=0)
BTVOC = M5TextBox(0, 112, "B. TVOC", lcd.FONT_Default, 0xFFFFFF, rotate=0)
eCO2 = M5TextBox(0, 136, "eCO2", lcd.FONT_Default, 0xFFFFFF, rotate=0)
Ethanol = M5TextBox(0, 173, "Ethanol", lcd.FONT_Default, 0xFFFFFF, rotate=0)
EthanolT = M5TextBox(62, 173, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)MAX = 1400
tvoc0.set_iaq_baseline(35187, 35502)
while True:
H2T.setText(str(tvoc0.H2))
BT.setText(str(tvoc0.get_iaq_baseline()))
TVOCT.setText(str(tvoc0.TVOC))
BTVOCT.setText(str(tvoc0.baseline_TVOC))
eco2T.setText(str(tvoc0.eCO2))
EthanolT.setText(str(tvoc0.Ethanol))
if (tvoc0.eCO2) > MAX:
M5Led.on()
speaker.sing(196, 1/2)
M5Led.off()
wait_ms(2)