Merge branch 'main' of ssh://simcoesibtea.supersaturn.space:3002/jp/pico-radio
This commit is contained in:
@@ -28,11 +28,11 @@ rustflags = [
|
|||||||
|
|
||||||
# This runner will make a UF2 file and then copy it to a mounted RP2040 in USB
|
# This runner will make a UF2 file and then copy it to a mounted RP2040 in USB
|
||||||
# Bootloader mode:
|
# Bootloader mode:
|
||||||
# runner = "elf2uf2-rs -d"
|
runner = "elf2uf2-rs -d"
|
||||||
|
|
||||||
# This runner will find a supported SWD debug probe and flash your RP2040 over
|
# This runner will find a supported SWD debug probe and flash your RP2040 over
|
||||||
# SWD:
|
# SWD:
|
||||||
runner = "probe-rs run --chip RP2040 --protocol swd"
|
# runner = "probe-rs run --chip RP2040 --protocol swd"
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
DEFMT_RTT_BUFFER_SIZE = { value = "4096", force = true }
|
DEFMT_RTT_BUFFER_SIZE = { value = "4096", force = true }
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ fn main() -> ! {
|
|||||||
let pwm0 = &mut pwm_slices.pwm0;
|
let pwm0 = &mut pwm_slices.pwm0;
|
||||||
pwm0.set_ph_correct();
|
pwm0.set_ph_correct();
|
||||||
pwm0.set_div_frac(0);
|
pwm0.set_div_frac(0);
|
||||||
pwm0.enable();
|
pwm0.disable();
|
||||||
|
|
||||||
pwm0.channel_a.output_to(pins.gpio16);
|
pwm0.channel_a.output_to(pins.gpio16);
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ fn main() -> ! {
|
|||||||
|
|
||||||
match broadcast_on {
|
match broadcast_on {
|
||||||
true => gfx_buf.draw_string(20, 42, "ON THE AIR"),
|
true => gfx_buf.draw_string(20, 42, "ON THE AIR"),
|
||||||
false => (),
|
false => gfx_buf.draw_string(20, 48, "Offline"),
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx_buf.redraw();
|
gfx_buf.redraw();
|
||||||
|
|||||||
Reference in New Issue
Block a user