From 75e0a03ff0b92c59590301c906928ac2f399e144 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Sun, 3 Nov 2024 22:08:52 -0500 Subject: [PATCH] Remove unused imports --- halloween-leds/src/main.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/halloween-leds/src/main.rs b/halloween-leds/src/main.rs index 5cd0be2..1a5d589 100644 --- a/halloween-leds/src/main.rs +++ b/halloween-leds/src/main.rs @@ -1,21 +1,15 @@ #![no_main] #![no_std] +use embedded_hal::delay::DelayNs; use embedded_hal::spi::SpiBus; -use embedded_hal::{delay::DelayNs, digital::OutputPin}; use panic_halt as _; -use rp_pico::hal::gpio::bank0::Gpio0; use rp_pico::{ entry, hal::{ clocks::init_clocks_and_plls, fugit::RateExtU32, - gpio::{ - bank0::{Gpio2, Gpio4}, - FunctionSio, Pin, PullDown, SioOutput, - }, - spi::{Enabled, Spi, SpiDevice, ValidSpiPinout}, - uart::{DataBits, StopBits, UartConfig, UartPeripheral}, + spi::Spi, Clock, Sio, Timer, Watchdog, }, pac, Pins, @@ -85,7 +79,7 @@ unsafe fn main() -> ! { // lights[7] = brightness as u8; brightness = brightness + step; - spi.write(lights.as_slice()); + let _ = spi.write(lights.as_slice()); timer.delay_ms(MS_PER_FRAME); } }