From befa56df5c1f5de8b3146d4a381d6d97b092b46e Mon Sep 17 00:00:00 2001 From: JP Stringham Date: Mon, 9 Feb 2026 17:09:38 -0500 Subject: [PATCH] Start with pwm disabled --- .cargo/config.toml | 4 ++-- src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index a492de7..1e5fb37 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -28,11 +28,11 @@ rustflags = [ # This runner will make a UF2 file and then copy it to a mounted RP2040 in USB # Bootloader mode: -# runner = "elf2uf2-rs -d" +runner = "elf2uf2-rs -d" # This runner will find a supported SWD debug probe and flash your RP2040 over # SWD: -runner = "probe-rs run --chip RP2040 --protocol swd" +# runner = "probe-rs run --chip RP2040 --protocol swd" [env] DEFMT_RTT_BUFFER_SIZE = { value = "4096", force = true } diff --git a/src/main.rs b/src/main.rs index af4c5d8..c9a292b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -85,7 +85,7 @@ fn main() -> ! { let pwm0 = &mut pwm_slices.pwm0; pwm0.set_ph_correct(); pwm0.set_div_frac(0); - pwm0.enable(); + pwm0.disable(); pwm0.channel_a.output_to(pins.gpio16); @@ -141,7 +141,7 @@ fn main() -> ! { match broadcast_on { true => gfx_buf.draw_string(20, 48, "ON THE AIR"), - false => (), + false => gfx_buf.draw_string(20, 48, "Offline"), } gfx_buf.redraw();