diff --git a/beat_detection/src/dmx_controller.rs b/beat_detection/src/dmx_controller.rs index 0a9532b..7a3d92a 100644 --- a/beat_detection/src/dmx_controller.rs +++ b/beat_detection/src/dmx_controller.rs @@ -1,7 +1,6 @@ use std::{io, sync::{Arc, Mutex}, thread, time::{Duration, Instant}}; use anyhow::{anyhow, Result}; -use palette::{Hsl, IntoColor, Pixel, Srgb}; use serialport::SerialPort; use crate::fixtures::{DMXFixture, MovingHead}; @@ -42,8 +41,6 @@ fn poll_response(ser: &mut dyn SerialPort) -> Result { pub fn controller_thread(running: Arc>, movingheads: Arc>) -> Result<()> { let frame_time = Duration::from_secs_f64(1.0 / FPS as f64); - let hsl_cycle = 12 * FPS; - let mut dmx_buffer = [0u8; 512]; let mut ser = serialport::new("/dev/ttyUSB0", 500_000) @@ -58,8 +55,6 @@ pub fn controller_thread(running: Arc>, movingheads: Arc>, movingheads: Arc