Added HTU21 Sensor (#588)
* Added HTU21 Sensor Support Co-authored-by: Jonathan Wells <jonathan-wells@oist.jp>
This commit is contained in:
1 parent
e82f130494
commit
cf641851af
8 files changed
+235
-2
No files matched your search
@@ -85,6 +85,9 @@ unsigned long ReceivedSignal[array_size][2] = {{0, 0}, {0, 0}, {0, 0}, {0, 0}};
|
||||
#ifdef ZsensorBME280
|
||||
#include "config_BME280.h"
|
||||
#endif
|
||||
#ifdef ZsensorHTU21
|
||||
#include "config_HTU21.h"
|
||||
#endif
|
||||
#ifdef ZsensorHCSR04
|
||||
#include "config_HCSR04.h"
|
||||
#endif
|
||||
@@ -599,6 +602,9 @@ void setup()
|
||||
#ifdef ZsensorBME280
|
||||
setupZsensorBME280();
|
||||
#endif
|
||||
#ifdef ZsensorHTU21
|
||||
setupZsensorHTU21();
|
||||
#endif
|
||||
#ifdef ZsensorBH1750
|
||||
setupZsensorBH1750();
|
||||
#endif
|
||||
@@ -1157,6 +1163,9 @@ void loop()
|
||||
#ifdef ZsensorBME280
|
||||
MeasureTempHumAndPressure(); //Addon to measure Temperature, Humidity, Pressure and Altitude with a Bosch BME280
|
||||
#endif
|
||||
#ifdef ZsensorHTU21
|
||||
MeasureTempHum(); //Addon to measure Temperature, Humidity, of a HTU21 sensor
|
||||
#endif
|
||||
#ifdef ZsensorHCSR04
|
||||
MeasureDistance(); //Addon to measure distance with a HC-SR04
|
||||
#endif
|
||||
@@ -1286,6 +1295,9 @@ void stateMeasures()
|
||||
#ifdef ZsensorBME280
|
||||
modules = modules + ZsensorBME280;
|
||||
#endif
|
||||
#ifdef ZsensorHTU21
|
||||
modules = modules + ZsensorHTU21;
|
||||
#endif
|
||||
#ifdef ZsensorHCSR04
|
||||
modules = modules + ZsensorHCSR04;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user