KmanOz / Sonoff-HomeAssistant

Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant
MIT License
349 stars 86 forks source link

:Not an issue: NodeMCU compatibility of 4 channel firmware #31

Open officialarindam opened 6 years ago

officialarindam commented 6 years ago

i changed the pin definition as per nodemcu but the problem is when i push button 1 the esp8266 reboot.

define BUTTON1 D5 // (Don't Change for Sonoff 4CH)

define BUTTON2 D6 // (Don't Change for Sonoff 4CH)

define BUTTON3 D7 // (Don't Change for Sonoff 4CH)

define BUTTON4 D8 // (Don't Change for Sonoff 4CH)

define RELAY1 D1 // (Don't Change for Sonoff 4CH)

define RELAY2 D2 // (Don't Change for Sonoff 4CH)

define RELAY3 D3 // (Don't Change for Sonoff 4CH)

define RELAY4 D4 // (Don't Change for Sonoff 4CH)

define LED D0 // (Don't Change for Sonoff 4CH)

officialarindam commented 6 years ago

i disabled these four line

else if (count1 >40){ Serial.println("\n\nSonoff Rebooting . . . . . . . . Please Wait"); requestRestart = true; }