From 7ffc62ab8613b097485b2c664093e649907dc2a1 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Mon, 3 Aug 2026 07:46:10 -0400 Subject: First commit --- crates/teensy4/src/main.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 crates/teensy4/src/main.rs (limited to 'crates/teensy4/src/main.rs') diff --git a/crates/teensy4/src/main.rs b/crates/teensy4/src/main.rs new file mode 100644 index 0000000..16a1a1b --- /dev/null +++ b/crates/teensy4/src/main.rs @@ -0,0 +1,13 @@ +use std::thread; +use std::time::Duration; + +use rust_threadx_teensy4 as _; + +fn main() { + let mut count = 0_usize; + loop { + thread::sleep(Duration::from_millis(500)); + println!("Hello world! The count is {count}\r"); + count = count.wrapping_add(1); + } +} -- cgit v1.2.3