Move ::spi::MODE to ::SPI_MODE

We don't need a whole module for just one const
This commit is contained in:
Grant Miller 2021-03-12 13:29:32 -06:00
parent 2b7ee112fb
commit 8884885ca0
2 changed files with 1 additions and 8 deletions

View file

@ -10,7 +10,7 @@ use core::iter::once;
use display_interface::DataFormat::{U16BEIter, U8Iter};
use display_interface::WriteOnlyDataCommand;
pub mod spi;
pub use embedded_hal::spi::MODE_0 as SPI_MODE;
/// Trait representing the interface to the hardware.
///

View file

@ -1,7 +0,0 @@
use embedded_hal::spi::{Mode, Phase, Polarity};
/// SPI mode
pub const MODE: Mode = Mode {
polarity: Polarity::IdleLow,
phase: Phase::CaptureOnFirstTransition,
};