Hi there,
and welcome here,
So sounds like your code Wacked the Bootloader…
if you hold reset button and plug it in what happens?
Does the windows machine see it?
STuff happens, you are not the first. Welcome to level two
HTH
GL PJ
Get the espressif flash tool (downloaded) ready if you need to restore it. what is your dev environment like?