Merge pull request #23 from GrantM11235/spi-mode

Move `::spi::MODE` to `::SPI_MODE`
This commit is contained in:
Yuri Iozzelli 2021-05-11 09:17:11 +02:00 committed by GitHub
commit a68c0530ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,
};