nxt 0.2.1

USB driver for communicating with the NXT brick
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use nxt::*;

#[tokio::main]
async fn main() -> nxt::Result<()> {
    let nxt = Nxt::first_usb().await?;

    println!("List files");

    let mut handle = nxt.file_find_first(".").await?;

    loop {
        println!("{handle:?}");
        handle = nxt.file_find_next(&handle).await?;
    }
}