bluerobotics / navigator-rs

Navigator library for the Rust language
https://docs.bluerobotics.com/navigator-rs/doc/navigator_rs/
MIT License
1 stars 6 forks source link

Issue: RGB LEDs turning white when receive multiple requests #65

Open RaulTrombin opened 8 months ago

RaulTrombin commented 8 months ago
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));
        }
    }
}