Bugfix for ESP8266, ESP01
UM PIR: pin default -1 xml.cpp: no D1-8 for esp01
This commit is contained in:
@@ -4,11 +4,7 @@
|
||||
|
||||
#ifndef PIR_SENSOR_PIN
|
||||
// compatible with QuinLED-Dig-Uno
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
#define PIR_SENSOR_PIN 23 // Q4
|
||||
#else //ESP8266 boards
|
||||
#define PIR_SENSOR_PIN 13 // Q4 (D7 on D1 mini)
|
||||
#endif
|
||||
#define PIR_SENSOR_PIN -1 //WLEDMM not default 23 // Q4 for esp32 or otherwise 13 // Q4 (D7 on D1 mini)
|
||||
#endif
|
||||
|
||||
#ifndef PIR_SENSOR_OFF_SEC
|
||||
|
||||
@@ -385,9 +385,9 @@ class UsermodTemperature : public Usermod {
|
||||
void appendConfigData()
|
||||
{
|
||||
oappend(SET_F("addHB('Temperature');")); // WLEDMM
|
||||
oappend(SET_F("addInfo('")); oappend(SET_F(FPSTR(_name))); oappend(SET_F(":")); oappend(SET_F(FPSTR(_parasite)));
|
||||
oappend(SET_F("addInfo('Temperature:parasite-pwr"));
|
||||
oappend(SET_F("',1,'<i>(if no Vcc connected)</i>');")); // 0 is field type, 1 is actual field
|
||||
oappend(SET_F("addInfo('")); oappend(SET_F(FPSTR(_name))); oappend(SET_F(":")); oappend(SET_F(FPSTR(_parasitePin)));
|
||||
oappend(SET_F("addInfo('Temperature:parasite-pwr-pin"));
|
||||
oappend(SET_F("',1,'<i>(for external MOSFET)</i>');")); // 0 is field type, 1 is actual field
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user