mirror of
https://github.com/yuri91/ili9341-rs.git
synced 2024-11-24 07:30:59 +00:00
Move ::spi::MODE
to ::SPI_MODE
We don't need a whole module for just one const
This commit is contained in:
parent
2b7ee112fb
commit
8884885ca0
2 changed files with 1 additions and 8 deletions
|
@ -10,7 +10,7 @@ use core::iter::once;
|
||||||
use display_interface::DataFormat::{U16BEIter, U8Iter};
|
use display_interface::DataFormat::{U16BEIter, U8Iter};
|
||||||
use display_interface::WriteOnlyDataCommand;
|
use display_interface::WriteOnlyDataCommand;
|
||||||
|
|
||||||
pub mod spi;
|
pub use embedded_hal::spi::MODE_0 as SPI_MODE;
|
||||||
|
|
||||||
/// Trait representing the interface to the hardware.
|
/// Trait representing the interface to the hardware.
|
||||||
///
|
///
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
use embedded_hal::spi::{Mode, Phase, Polarity};
|
|
||||||
|
|
||||||
/// SPI mode
|
|
||||||
pub const MODE: Mode = Mode {
|
|
||||||
polarity: Polarity::IdleLow,
|
|
||||||
phase: Phase::CaptureOnFirstTransition,
|
|
||||||
};
|
|
Loading…
Reference in a new issue