7-button zigbee wall controller - III
Here it is, the first attempt at a replacement module.
All 7 leds are controllable, and all 7 push buttons work as intended.
Luck or good planning? I used up all the pins with no need to re-wire. If you know the esp8266 well, you will know there is a limited amount of gpio and even less of them can be shared/used flexibly as they are shared with other functions such as GPIO-0 to select boot mode. Read further to see the details and some sample code you can try yourself.