Closed melkati closed 2 years ago
Hi,
I have successfully tested the MHZ19 sensor. Found out how to proceed by modifying CO2_Gadget_Sensors.h Changing line 74 with : sensors.init(sensors.Mhz19);
Keep going, it is a very nice project.
Hi Frédéric.
Thank you very much. :-)
You don't need to modify the source code to select different sensors.
Just:
Compile and flash with code in Feature-Select-CO2-Sensor branch
Go to menu Configuration -> CO2 Sensor and select option "CO2 Sensor" now you can select the sensor with "Enter" (long press upper button on TTGO T-Display of from the serial console with key "*").
After each "Enter" give CO2 Gadget some time to try to init the sensor (one-two seconds), you will notice the menu unresponsive during this time. This is something I want to improve before releasing this feature.
Done!
I'll merge this feature in master branch as soon as I make some improvements (as the delay in menu) and do some more tests.
You are more than welcome to test this branch as I already tested this feature with Senseair S8 and Cubic CM1106 but not with MH-Z19. Thank you!
Released as v0.5.001
@freddujour
TODO