This commit is contained in:
jane 2021-12-24 19:57:10 -05:00
parent bcb5271194
commit a172e0afee
1 changed files with 2 additions and 0 deletions

View File

@ -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<usize> = controller.channels();
let mut strip = controller.leds_mut(channels[0]);
for i in 0..strip.len() {