Add ability to inverse notify PIR LED (#765)

This commit is contained in:
Jon authored and GitHub committed 2020-09-22 13:04:29 -05:00
1 parent 55436c29fa
commit 1780458683
3 files changed
+8 -1

No files matched your search

+4
View File
@@ -33,6 +33,10 @@ extern void HCSR501toMQTT();
#define subjectHCSR501toMQTT "/HCSR501toMQTT"
//#define HCSR501_LED_NOTIFY_GPIO 4 //Uncomment this line to mirror the state of the PIR sensor to the specified GPIO
#if defined(HCSR501_LED_NOTIFY_GPIO) && !defined(HCSR501_LED_ON)
# define HCSR501_LED_ON HIGH
#endif
#ifndef TimeBeforeStartHCSR501
# define TimeBeforeStartHCSR501 60000 //define the time necessary for HC SR501 init
#endif