6 files changed
+216
No files matched your search
@@ -88,6 +88,9 @@ unsigned long ReceivedSignal[array_size][2] = {{0, 0}, {0, 0}, {0, 0}, {0, 0}};
|
||||
#ifdef ZsensorHTU21
|
||||
# include "config_HTU21.h"
|
||||
#endif
|
||||
#ifdef ZsensorAHTx0
|
||||
# include "config_AHTx0.h"
|
||||
#endif
|
||||
#ifdef ZsensorHCSR04
|
||||
# include "config_HCSR04.h"
|
||||
#endif
|
||||
@@ -542,6 +545,9 @@ void setup() {
|
||||
#ifdef ZsensorHTU21
|
||||
setupZsensorHTU21();
|
||||
#endif
|
||||
#ifdef ZsensorAHTx0
|
||||
setupZsensorAHTx0();
|
||||
#endif
|
||||
#ifdef ZsensorBH1750
|
||||
setupZsensorBH1750();
|
||||
#endif
|
||||
@@ -1076,6 +1082,9 @@ void loop() {
|
||||
#ifdef ZsensorHTU21
|
||||
MeasureTempHum(); //Addon to measure Temperature, Humidity, of a HTU21 sensor
|
||||
#endif
|
||||
#ifdef ZsensorAHTx0
|
||||
MeasureAHTTempHum(); //Addon to measure Temperature, Humidity, of an 'AHTx0' sensor
|
||||
#endif
|
||||
#ifdef ZsensorHCSR04
|
||||
MeasureDistance(); //Addon to measure distance with a HC-SR04
|
||||
#endif
|
||||
@@ -1196,6 +1205,9 @@ void stateMeasures() {
|
||||
# ifdef ZsensorHTU21
|
||||
modules = modules + ZsensorHTU21;
|
||||
# endif
|
||||
# ifdef ZsensorAHTx0
|
||||
modules = modules + ZsensorAHTx0;
|
||||
# endif
|
||||
# ifdef ZsensorHCSR04
|
||||
modules = modules + ZsensorHCSR04;
|
||||
# endif
|
||||
|
||||
Reference in new issue
Block a user