#![feature(alloc_system)]
extern crate alloc_system;
extern crate tessel;
use tessel::Tessel;
use std::thread::sleep;
use std::time::Duration;
fn main() {
let mut tessel = Tessel::new();
let (_a, _b) = Tessel::ports().expect("Could not acquire Tessel ports.");
tessel.led[2].on().unwrap();
println!("I'm blinking! (Press CTRL + C to stop)");
loop {
tessel.led[2].toggle().unwrap();
tessel.led[3].toggle().unwrap();
sleep(Duration::from_millis(100));
}
}