From 1a85e03629183594018aaeaeebc73fdccf91e97c Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Thu, 4 Jan 2024 21:05:20 +0000 Subject: [PATCH] Add link to embassy Also mention that LEDs need series resistors. --- src/main.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 71b0223..5f84fc6 100644 --- a/src/main.rs +++ b/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 {