Add link to embassy
Also mention that LEDs need series resistors.
This commit is contained in:
parent
6093fe3585
commit
1a85e03629
10
src/main.rs
10
src/main.rs
@ -55,9 +55,13 @@ fn main() -> ! {
|
||||
|
||||
// This is the correct pin on the Raspberry Pico board. On other boards, even if they have an
|
||||
// on-board LED, it might need to be changed.
|
||||
// Notably, on the Pico W, the LED is not connected to any of the RP2040 GPIOs but to the cyw43 module instead. If you have
|
||||
// a Pico W and want to toggle a LED with a simple GPIO output pin, you can connect an external
|
||||
// LED to one of the GPIO pins, and reference that pin here.
|
||||
//
|
||||
// Notably, on the Pico W, the LED is not connected to any of the RP2040 GPIOs but to the cyw43 module instead.
|
||||
// One way to do that is by using [embassy](https://github.com/embassy-rs/embassy/blob/main/examples/rp/src/bin/wifi_blinky.rs)
|
||||
//
|
||||
// If you have a Pico W and want to toggle a LED with a simple GPIO output pin, you can connect an external
|
||||
// LED to one of the GPIO pins, and reference that pin here. Don't forget adding an appropriate resistor
|
||||
// in series with the LED.
|
||||
let mut led_pin = pins.led.into_push_pull_output();
|
||||
|
||||
loop {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user