diff options
| author | Ian McIntyre <me@mciantyre.dev> | 2026-08-03 07:46:10 -0400 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2026-08-03 07:46:10 -0400 |
| commit | 7ffc62ab8613b097485b2c664093e649907dc2a1 (patch) | |
| tree | 428e6e958af00e1022e663676fffe9c19f0174a6 /crates/teensy4/src/main.rs | |
First commit
Diffstat (limited to 'crates/teensy4/src/main.rs')
| -rw-r--r-- | crates/teensy4/src/main.rs | 13 |
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); + } +} |
