From 3932835998802fc3abf7cce4f736e072858ebfd1 Mon Sep 17 00:00:00 2001 From: Curly Date: Sun, 23 Feb 2025 07:33:58 -0800 Subject: rename `rp23` (?) folder to `rp235x`; fix `ci.sh` to use `rp235x` folder --- examples/rp23/src/bin/button.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 examples/rp23/src/bin/button.rs (limited to 'examples/rp23/src/bin/button.rs') diff --git a/examples/rp23/src/bin/button.rs b/examples/rp23/src/bin/button.rs deleted file mode 100644 index 4ad2ca3b7..000000000 --- a/examples/rp23/src/bin/button.rs +++ /dev/null @@ -1,28 +0,0 @@ -//! This example uses the RP Pico on board LED to test input pin 28. This is not the button on the board. -//! -//! It does not work with the RP Pico W board. Use wifi_blinky.rs and add input pin. - -#![no_std] -#![no_main] - -use embassy_executor::Spawner; -use embassy_rp::gpio::{Input, Level, Output, Pull}; -use {defmt_rtt as _, panic_probe as _}; - -#[embassy_executor::main] -async fn main(_spawner: Spawner) { - let p = embassy_rp::init(Default::default()); - let mut led = Output::new(p.PIN_25, Level::Low); - - // Use PIN_28, Pin34 on J0 for RP Pico, as a input. - // You need to add your own button. - let button = Input::new(p.PIN_28, Pull::Up); - - loop { - if button.is_high() { - led.set_high(); - } else { - led.set_low(); - } - } -} -- cgit