hi,
is there anyone that has experience programming a Pico W in the platformio IDE? i can get code on the board by using the normal pico but can’t access the LED or WIFI module. any tips and tricks are welcome!
Thomas
hi,
is there anyone that has experience programming a Pico W in the platformio IDE? i can get code on the board by using the normal pico but can’t access the LED or WIFI module. any tips and tricks are welcome!
Thomas
As described in PR#36 this works. As the developer I personally tested this on a Pico W using the platformio.ini
[env]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
framework = arduino
board_build.core = earlephilhower
board_build.filesystem_size = 0.5m
[env:rpipicow]
board = rpipicow
with the e.g. ScanNetworks.ino
code as src/main.cpp
, verbatim.
Good job!
After a massive download, and a filesystem full, the ScanNetworks code worked perfectly.
I’m reading PR thread.
I hope it will be added to core PlatformIO.
The configuration provided here works for me (for the pico w), thank you.
However, the configuration provided at https://github.com/earlephilhower/arduino-pico/blob/master/docs/platformio.rst didn’t work. The LED did not blink. Would you happen to know why?
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
board_build.core = earlephilhower
I’m assuming your code compiles and you can upload, so the question is, what GPIO are you using for the LED?
On the pico, it’s pin 25. You can use the defined constant of
LED_BUILTIN
If you select board = pico
but burn a firmware that references LED_BUILTIN
to a physical Pico W board, the builtin LED will not blink. That LED is connected to the WiFi chip and is specially handled. Hence why you must use board = picow
to access that LED properly. They are on different pins and even chips between these boards (GP25 vs “32” i.e. GPIO0 of the CYW wifi chip)