I think I might have found the bug:
I suspect the bootloader doesn't set Pin 13 back to being an INPUT after it uses it to blink the LED.
Try putting "pinMode(LED_BUILTIN, INPUT);" after that line and see if the old code works.
I think I might have found the bug:
I suspect the bootloader doesn't set Pin 13 back to being an INPUT after it uses it to blink the LED.
Try putting "pinMode(LED_BUILTIN, INPUT);" after that line and see if the old code works.