Allow pins/settings to be defined in INI file (#597)
* Allow pins/settings to be defined in INI file * Open to make publishing ManufacturerData optional
This commit is contained in:
1 parent
470790b42e
commit
9fc5ba99f5
9 files changed
+90
-56
No files matched your search
+11
-7
@@ -32,15 +32,19 @@ extern void HCSR501toMQTT();
|
||||
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
|
||||
#define subjectHCSR501toMQTT "/HCSR501toMQTT"
|
||||
|
||||
#define TimeBeforeStartHCSR501 60000 //define the time necessary for HC SR501 init
|
||||
#ifndef TimeBeforeStartHCSR501
|
||||
#define TimeBeforeStartHCSR501 60000 //define the time necessary for HC SR501 init
|
||||
#endif
|
||||
|
||||
/*-------------------PIN DEFINITIONS----------------------*/
|
||||
#if defined(ESP8266)
|
||||
#define HCSR501_PIN D5
|
||||
#elif defined(ESP32)
|
||||
#define HCSR501_PIN 5
|
||||
#else
|
||||
#define HCSR501_PIN 7
|
||||
#ifndef HCSR501_PIN
|
||||
#if defined(ESP8266)
|
||||
#define HCSR501_PIN D5
|
||||
#elif defined(ESP32)
|
||||
#define HCSR501_PIN 5
|
||||
#else
|
||||
#define HCSR501_PIN 7
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user