use navigator_rs::Navigator;
use std::thread::sleep;
use std::time::Duration;
fn main() {
let mut nav = Navigator::new();
nav.init();
println!("Creating rainbow effect!");
loop {
let steps = 1000;
for i in 0..=steps {
nav.set_neopixel(&[[100,0,0]]); //should be red all the times, sometimes it blinks with full white color.
sleep(Duration::from_millis(500));
}
}
}