Add more pins to your ESP8266 with the MCP23008 I/O expander chip. With this driver you will be able to control up to 8 GPIO pins instead of only two.
Lua Example:
https://github.com/AllAboutEE/nodemcu...
Lua Module:
https://github.com/AllAboutEE/nodemcu...
MCP23008 Datasheet:
http://ww1.microchip.com/downloads/en...
ESPlorer IDE:
http://esp8266.ru/esplorer/
Power Supply:
https://www.sparkfun.com/products/10804