PIR Notify LED (#702)

* Add PIR LED mirroring

* Lint formating

* Changed var name & added example define

Co-authored-by: Jonathan Michael Wells <jonathan-wells@oist.jp>
This commit is contained in:
JonandJonathan Michael Wells authored and GitHub committed 2020-07-19 06:34:13 -05:00
1 parent 40152d6a02
commit 40a69037e5
3 files changed
+19 -1

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ extern void HCSR501toMQTT();
/*----------------------------USER PARAMETERS-----------------------------*/
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
#define subjectHCSR501toMQTT "/HCSR501toMQTT"
//#define HCSR501_LED_NOTIFY_GPIO 4 //Uncomment this line to mirror the state of the PIR sensor to the specified GPIO
#ifndef TimeBeforeStartHCSR501
# define TimeBeforeStartHCSR501 60000 //define the time necessary for HC SR501 init