From a3ddfc2734fbba1a05e4cf76882914c884b34082 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Wed, 1 Apr 2020 04:45:37 +0100 Subject: [PATCH] removed deps from main --- src/main.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 502bd80..76b51f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,13 +7,10 @@ extern crate serde_json; // std lib imports use std::{thread, time}; -use std::error::Error; // actual third party library being imported use rppal::spi::{Bus, Mode, SlaveSelect, Spi}; -use rppal::gpio::Gpio; -use rppal::hal::{Delay, Timer}; -use smart_leds::{colors, hsv::{Hsv, hsv2rgb}, RGB8, SmartLedsWrite, brightness}; +use smart_leds::{RGB8, SmartLedsWrite, brightness}; use ws2812_spi::Ws2812; // local files that need to be imported @@ -22,13 +19,11 @@ mod config; mod generate; mod led; -const GPIO_PIN: u8 = 19; const NUM_LEDS: usize = 150; fn main() { let spi = Spi::new(Bus::Spi0, SlaveSelect::Ss0, 3_000_000, Mode::Mode0).unwrap(); let mut ws = Ws2812::new(spi); - let delay = Delay::new(); let mut configuration = config::init_config(); let mut headless_count: u32 = 0;