Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to blink the onboard led on rpi pico w #525

Open
Narayanbhat166 opened this issue Dec 16, 2022 · 6 comments
Open

Not able to blink the onboard led on rpi pico w #525

Narayanbhat166 opened this issue Dec 16, 2022 · 6 comments

Comments

@Narayanbhat166
Copy link

I'm trying to get started with running rust on my newly purchased rpi pico w ( with wifi support ). Initially when I set everything up and run the blinky example, it did not work. I then ran the micro python example and the led was working. For the w version the rpi community says that there is a slight change in the way onboard led is configured

Link to the thread https://forums.raspberrypi.com/viewtopic.php?t=336836

Is there any change that must be made in the rust blinky example to get it working?

@jannic
Copy link
Member

jannic commented Dec 16, 2022

"a slight change" is an understatement: The LED is connected to a different chip, the wifi one, not the RP2040.
Therefore, to blink the LED, you need a wifi driver. Which is not yet available in the released version of rp2040-hal.

If you are adventurous, you could try the experimental WIP version at https://github.com/jannic/rp-hal/tree/pico-w.
The blinky example is at https://github.com/jannic/rp-hal/blob/pico-w/boards/rp-pico-w/examples/pico_w_blinky.rs

(BTW, please don't close this ticket. There have been multiple instances of the same question in the past. Perhaps an open ticket with a descriptive title will help other people with the same issue.)

@Narayanbhat166
Copy link
Author

This works. Thanks!

@metetik
Copy link

metetik commented Dec 20, 2022

I had same issue thanks so much 🙏

@dewey4iv
Copy link

dewey4iv commented May 1, 2023

Still works! :)

@alexkingnz
Copy link

Is the pico-w branch going to be merged into main at some stage? I see it's behind main by about 6 months? Anything others could do to assist with it?

@jannic
Copy link
Member

jannic commented Jul 17, 2023

In theory, that's the idea. In practice, it was blocked on some other crates which were not released to crates.io yet, and would probably need nightly rust.

I didn't follow recent developments closely so I'm not sure if the reasons still exist. My plan is to revisit the situation every now and then, but I don't want to spend much time on updating the branch until it is realistic to actually merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants