mirror of
https://github.com/wled/WLED.git
synced 2025-07-15 14:56:32 +00:00
PULLDOWN fix
This commit is contained in:
parent
246746a82e
commit
678a823e8b
@ -374,7 +374,7 @@ void PIRsensorSwitch::setup()
|
|||||||
if (pinManager.allocatePin(PIRsensorPin[i], false, PinOwner::UM_PIR)) {
|
if (pinManager.allocatePin(PIRsensorPin[i], false, PinOwner::UM_PIR)) {
|
||||||
// PIR Sensor mode INPUT_PULLDOWN
|
// PIR Sensor mode INPUT_PULLDOWN
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
pinMode(PIRsensorPin[i], PIRsensorPin[i]==16 ? INPUT_PULLDOWN : INPUT_PULLUP); // ESP8266 has INPUT_PULLDOWN on GPIO16 only
|
pinMode(PIRsensorPin[i], PIRsensorPin[i]==16 ? INPUT_PULLDOWN_16 : INPUT_PULLUP); // ESP8266 has INPUT_PULLDOWN on GPIO16 only
|
||||||
#else
|
#else
|
||||||
pinMode(PIRsensorPin[i], INPUT_PULLDOWN);
|
pinMode(PIRsensorPin[i], INPUT_PULLDOWN);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user