rp-rs / rp2040-project-template

A basic rp2040-hal project with blinky and rtt logging example code. With this you can quickly get started on a new rp2040 project
480 stars 98 forks source link

Raspberry Pi Pico W/WH LED connected to WiFi chip, not RP2040 #42

Closed micolous closed 1 year ago

micolous commented 1 year ago

The Pico W and WH connect the on-board LED to WL_GPIO0 on the Infineon CYW43439 (WiFi/BTLE interface), rather than GPIO 25 as used in the "Hello World" program in this repository (where the led pin is defined in the rp-pico crate).

Unfortunately, this makes things difficult to debug if you're using the UF2/USB flashing method, as there's no way to know if the program is actually running correctly other than the USB mass storage device suddenly disappearing.

I think it's worth calling this out this difference in the README and/or src/main.rs. Connecting an LED to one of the other GPIOs via a resistor, and changing led_pin seems to work fine.