How to Flash the ESP8266
To be done! Essentially, you need the flashing software and the firmware provided by the manufacturer, a serial connection, and minimal wiring. Switches are already a luxurious extra.
Why would you do that? You don't like the installed version of the firmware, in example.