Add HC SR501 PIR sensor support (#107)
This commit is contained in:
1 parent
c915ddfa48
commit
ae408f62fd
4 files changed
+107
-1
No files matched your search
+6
-1
@@ -183,7 +183,9 @@ void setup()
|
||||
#ifdef ZgatewayRFM69
|
||||
setupRFM69();
|
||||
#endif
|
||||
|
||||
#ifdef ZsensorHCSR501
|
||||
setupHCSR501();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef ESP8266
|
||||
@@ -247,6 +249,9 @@ void loop()
|
||||
#ifdef ZsensorDHT
|
||||
MeasureTempAndHum(); //Addon to measure the temperature with a DHT
|
||||
#endif
|
||||
#ifdef ZsensorHCSR501
|
||||
MeasureHCSR501();
|
||||
#endif
|
||||
#ifdef ZsensorADC
|
||||
MeasureADC(); //Addon to measure the analog value of analog pin
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user