aboutsummaryrefslogtreecommitdiff
path: root/crates/teensy4/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/teensy4/src/main.rs')
-rw-r--r--crates/teensy4/src/main.rs13
1 files changed, 13 insertions, 0 deletions
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);
+ }
+}