[MQ2] Gas sensor & tweak DHT config to avoid editing source when PIN is different (#1576)
Add MQ2 Gas sensor & tweak DHT config to avoid editing source when PIN is different
This commit is contained in:
1 parent
5cd13e0d0d
commit
0ece563a52
9 files changed
+179
-2
No files matched your search
@@ -109,6 +109,9 @@ struct GfSun2000Data {};
|
||||
#ifdef ZsensorBH1750
|
||||
# include "config_BH1750.h"
|
||||
#endif
|
||||
#ifdef ZsensorMQ2
|
||||
# include "config_MQ2.h"
|
||||
#endif
|
||||
#ifdef ZsensorTEMT6000
|
||||
# include "config_TEMT6000.h"
|
||||
#endif
|
||||
@@ -879,6 +882,10 @@ void setup() {
|
||||
setupZsensorBH1750();
|
||||
modules.add(ZsensorBH1750);
|
||||
#endif
|
||||
#ifdef ZsensorMQ2
|
||||
setupZsensorMQ2();
|
||||
modules.add(ZsensorMQ2);
|
||||
#endif
|
||||
#ifdef ZsensorTEMT6000
|
||||
setupZsensorTEMT6000();
|
||||
modules.add(ZsensorTEMT6000);
|
||||
@@ -1655,6 +1662,9 @@ void loop() {
|
||||
#ifdef ZsensorBH1750
|
||||
MeasureLightIntensity(); //Addon to measure Light Intensity with a BH1750
|
||||
#endif
|
||||
#ifdef ZsensorMQ2
|
||||
MeasureGasMQ2();
|
||||
#endif
|
||||
#ifdef ZsensorTEMT6000
|
||||
MeasureLightIntensityTEMT6000();
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user