aboutsummaryrefslogtreecommitdiff
path: root/crates/teensy4/src/main.rs
blob: 16a1a1ba39da82aab45ba696e87b34ac21fed692 (plain)
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);
    }
}