Remove unused imports
This commit is contained in:
parent
82ec50f519
commit
5ed39f814a
|
@ -1,21 +1,15 @@
|
||||||
#![no_main]
|
#![no_main]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
use embedded_hal::delay::DelayNs;
|
||||||
use embedded_hal::spi::SpiBus;
|
use embedded_hal::spi::SpiBus;
|
||||||
use embedded_hal::{delay::DelayNs, digital::OutputPin};
|
|
||||||
use panic_halt as _;
|
use panic_halt as _;
|
||||||
use rp_pico::hal::gpio::bank0::Gpio0;
|
|
||||||
use rp_pico::{
|
use rp_pico::{
|
||||||
entry,
|
entry,
|
||||||
hal::{
|
hal::{
|
||||||
clocks::init_clocks_and_plls,
|
clocks::init_clocks_and_plls,
|
||||||
fugit::RateExtU32,
|
fugit::RateExtU32,
|
||||||
gpio::{
|
spi::Spi,
|
||||||
bank0::{Gpio2, Gpio4},
|
|
||||||
FunctionSio, Pin, PullDown, SioOutput,
|
|
||||||
},
|
|
||||||
spi::{Enabled, Spi, SpiDevice, ValidSpiPinout},
|
|
||||||
uart::{DataBits, StopBits, UartConfig, UartPeripheral},
|
|
||||||
Clock, Sio, Timer, Watchdog,
|
Clock, Sio, Timer, Watchdog,
|
||||||
},
|
},
|
||||||
pac, Pins,
|
pac, Pins,
|
||||||
|
@ -85,7 +79,7 @@ unsafe fn main() -> ! {
|
||||||
// lights[7] = brightness as u8;
|
// lights[7] = brightness as u8;
|
||||||
brightness = brightness + step;
|
brightness = brightness + step;
|
||||||
|
|
||||||
spi.write(lights.as_slice());
|
let _ = spi.write(lights.as_slice());
|
||||||
timer.delay_ms(MS_PER_FRAME);
|
timer.delay_ms(MS_PER_FRAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue