Sketch compiles, flashes, and then...nothing #2829
-
I realized that I had the mbed Arduino core installed, rather than earlephilhower, which was why Wire1 wasn't working for me. So I explicitly switched. That eliminated those mysterious error codes (Phew!). The code compiled and flashed, and then... ... nothing. So I backed up and wrote up a quickie Blink just to make sure that normal stuff was working. Still nothing. No errors, everything compiles, console tells me that the code is downloaded. But the board seems to be just inert. Any ideas? Code (at its most basic):
Console output:
I can't think of any permissions that would apply to this since it seems to be genuinely writing to the board. Obviously, I don't just want to run Blink. But even this isn't running. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Try setting |
Beta Was this translation helpful? Give feedback.
-
Holy crap. That did it. Is this frustration just because I didn't manually set pins? Update: Works on my regular code, too! Also, it seems that it's a different USB device now, using device 5 instead of 3 ¯\_(ツ)_/¯ |
Beta Was this translation helpful? Give feedback.
Try setting
pinMode(25, OUTPUT)
insetup
or the GPIO will remain an input and you're not going to see anything. Also pin 25 is only for certain boards, tryLED_BUILTIN
for compatibility (i.e. Pico vs PicoW)