gordon77 wrote: ↑Thu Jun 30, 2022 8:32 am
Reading the docs doesn't make it clear to me if the new Micropython code copes with pico and pico W when dealing with the led, and whether you need 2 different codes..
It hasn't hit the nightly builds yet, but there was a check-in to
ports/rp2/machine_pin.c a few hours ago that looks like it does the needful for both Raspberry Pi Pico boards. It would be nice if all MicroPython boards* had something like this, like Arduino's LED_BUILTIN macro.
If you try it with any uf2 from
MicroPython downloads, you get:
TypeError: can't convert str to int. I'll have to wait until tomorrow to see it propagate through. Then wait until at least July 8 until my Pico Ws arrive ...
I don't see needing separate UF2 firmware files for different RP2040 boards to be much of a problem. You need different ones for different flash sizes already, and the mpy/cpy community is already inured to dealing with it.
*: boards that have user addressable LEDs, that is. Some don't.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him