From 3ba13263f764181a6e10f5b43f92f7ea6e9cfc0d Mon Sep 17 00:00:00 2001 From: Hexa Dust Date: Fri, 18 Jul 2025 20:31:23 +0100 Subject: [PATCH] cleanup --- src/main.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index 027694d..61f4816 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,17 +16,8 @@ fn main() -> ! { let dp = arduino_hal::Peripherals::take().unwrap(); let pins = arduino_hal::pins!(dp); - /* - * For examples (and inspiration), head to - * - * https://github.com/Rahix/avr-hal/tree/main/examples - * - * NOTE: Not all examples were ported to all boards! There is a good chance though, that code - * for a different board can be adapted for yours. The Arduino Uno currently has the most - * examples available. - */ - let mut led = pins.d13.into_output(); + // NOTE: 115200 @ 16MHz is 3.5% off, try 9600 or 1M if it causes issues (https://wormfood.net/avrbaudcalc.php) let serial = arduino_hal::default_serial!(dp, pins, 115200); let mut serial = share_serial_port_with_panic(serial); @@ -35,5 +26,6 @@ fn main() -> ! { loop { led.toggle(); arduino_hal::delay_ms(1000); + ufmt::uwrite!(&mut serial, ".").unwrap_infallible(); } }