mirror of
https://github.com/yuri91/ili9341-rs.git
synced 2024-11-21 14:30:58 +00:00
Merge pull request #23 from GrantM11235/spi-mode
Move `::spi::MODE` to `::SPI_MODE`
This commit is contained in:
commit
a68c0530ec
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