WEMOS D1 R2 no show temporal wifi

You shouldn’t need to do that. Edgent has the facility to clear the credentials using a long (10 second) press of the button defined in Settings.h

But you’ve chosen the D1 Mini board type, and if you look at the Settings.h tab you’ll see that this used GPIO0 and GPIO2 by default.

Your sketch says that you’re using GPIO1 to 5 for your LEDs, but the if loop in void setup is initialising GPIO0 to 4

You need to be careful which GPIOs you use with the ESP8266 based boards, as some can prevent the board from booting if pulled HIGH or LOW

I’d suggest that you start by reading this…

then read this…

Pete.