arendst / Sonoff-MQTT-OTA-Arduino

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE - Now EOL
618 stars 197 forks source link

How to use GPIO14 with a 5x PUSH button switch. #308

Open Rudoxxxx opened 7 years ago

Rudoxxxx commented 7 years ago

Hello! In my home I have big HALL with 5x PUSH button switch

I want to use GPIO14 with a 5 PUSH button switch. I install last version ( Sonoff and ElectroDragon by Theo Arends VERSION // 3.9.21) off programm, change to SWITCH_MODE PUSHBUTTON, in 2 places, but not help.

  1. Sonoff.ino Line #87:

    define SWITCH_MODE PUSHBUTTON // TOGGLE, FOLLOW or FOLLOW_INV (the wall switch state)

  2. user_config.h line #113

    define SWITCH_MODE PUSHBUTTON // [SwitchMode] TOGGLE, FOLLOW, FOLLOW_INV, PUSHBUTTON or PUSHBUTTON_INV (the wall switch state)

Thanks for help and Thanks for this project.

Rudoxxxx commented 7 years ago

If loadind programm to new Sonoff module, all working. For old module I need reflash EEPROM? Today I tray Write to EEPROM(512) 0 values

Rudoxxxx commented 7 years ago

Epprom not right way!

I found right way for this problem. Need defined #ifdef CFG_HOLDER for reflash values ATTENTION: - Changes to most PARAMETER defines will only override flash settings if you change

Thanks for HELP!