SOLVED: Any timer kills my sketch (ESP core version)

It is clearly shown in the Welcome Topic that, as with every other forum out there, is required reading BEFORE posting in the forum…

And then it shows how again in the very posting space that you either need to erase or ignore when posting your initial topic…

I think your “solution” will be in rethinking how an ESP and Arduino code use GPIO pins. Best way to start is just FORGET the silkscreened designations on the board and use a chart like this to map pins using the IDE (GPIO) numbering.

As for whether a pin is input or output is determined in the void setup() with pinMode() and really shouldn’t change mid-way through your code.

Then study up on the timer of your choice… Blynk uses a SimpleTimer variant that is built into the library and called BlynkTimer. More timer command info here.

Once you understand the basics of the timer, you can troubleshoot your own code much better :wink: