This commit is contained in:
jane 2021-12-01 00:55:08 +00:00
parent f9a37e46d1
commit bcb5271194

View file

@ -21,10 +21,12 @@ fn main() {
.strip_type(StripType::Ws2812) .strip_type(StripType::Ws2812)
.brightness(BRIGHTNESS) .brightness(BRIGHTNESS)
.build() .build()
.expect("Could not construct LED Channel.");
) )
.build().unwrap(); .build()
.expect("Could not construct LED Controller.");
loop { loop {
let lights = lock_c.read().unwrap(); let lights = lock_c.read().expect("Could not read array lock.");
run_lights(&mut controller, &lights); run_lights(&mut controller, &lights);
} }
}); });