1 2 3 4 5 6 7 8 9 10 11 12 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); } }