Add AHTx0 Sensor (AHT10 and AHT20) (#687)

* Add AHT Sensor
This commit is contained in:
Jon authored and GitHub committed 2020-07-04 09:40:06 -05:00
1 parent a3ab39b04e
commit 0e257a58c1
6 files changed
+216

No files matched your search

+12
View File
@@ -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