Start with pwm disabled

This commit is contained in:
JP Stringham
2026-02-09 17:09:38 -05:00
parent cef00d1afd
commit befa56df5c
2 changed files with 4 additions and 4 deletions

View File

@@ -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 }

View File

@@ -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();