How to use most GPIOs of ESP12e for simple push button inputs and led outputs?
This is the setup I have used for 4 relays and 4 touch switches on ESP8266-E. But there is occasional problem with relay4 as the connected wall light blinks rapidly in sync with onboard LED. I think instead of GPIO-2/D4, I should have used GPIO-3/RX pin.