From a172e0afee45d5d18b6680aee80609d0540511fb Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Fri, 24 Dec 2021 19:57:10 -0500 Subject: [PATCH] sleep --- src/util/lights.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/lights.rs b/src/util/lights.rs index 8d7d377..be54459 100644 --- a/src/util/lights.rs +++ b/src/util/lights.rs @@ -1,9 +1,11 @@ use rs_ws281x::RawColor; use rs_ws281x::Controller; use rs_ws281x::WS2811Error; +use std::{thread, time}; pub fn run_lights(controller: &mut Controller, values: &[RawColor; crate::LED_SIZE]) -> Result<(), WS2811Error> { // println!("Value: {:?}", strip[0]); + thread::sleep(time::Duration::from_secs(1)); let channels: Vec = controller.channels(); let mut strip = controller.leds_mut(channels[0]); for i in 0..strip.len() {