02-03-2023, 11:09 AM
You must not use PIN D10 (check your board: there is none). It is used for the internal flash and we would expect that the board is nastily crashed by your code. You should check https://randomnerdtutorials.com/esp32-pi...nce-gpios/, for instance.
If you use 32 (or some others, see link) instead, your code should run without problems.
If you use 32 (or some others, see link) instead, your code should run without problems.