simple/
simple.rs

1extern crate ds;
2
3use ds::*;
4
5use std::thread;
6use std::time::Duration;
7
8fn main() {
9    let mut ds = DriverStation::new_team(4069, Alliance::new_red(1));
10
11    thread::sleep(Duration::from_millis(1500));
12    ds.restart_code();
13    loop {
14        println!("Code: {}", ds.trace().is_code_started());
15
16        thread::sleep(Duration::from_millis(20));
17    }
18}