Edition 2018

This commit is contained in:
Vadim Kaushan 2020-01-28 20:53:24 +03:00
parent f958482f98
commit c51eaa4ffa
No known key found for this signature in database
GPG key ID: A501C5DF67C05C4E
3 changed files with 8 additions and 9 deletions

View file

@ -7,6 +7,7 @@ categories = ["embedded", "hardware-support", "no-std"]
keywords = ["embedded-hal-driver", "display", "LCD"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yuri91/ili9341-rs"
edition = "2018"
[dependencies]

View file

@ -1,13 +1,11 @@
#![no_std]
extern crate embedded_hal as hal;
#[cfg(feature = "graphics")]
extern crate embedded_graphics;
use hal::blocking::delay::DelayMs;
use hal::blocking::spi::{Write, Transfer};
use hal::digital::v2::OutputPin;
use embedded_hal::blocking::delay::DelayMs;
use embedded_hal::blocking::spi::{Write, Transfer};
use embedded_hal::digital::v2::OutputPin;
use core::fmt::Debug;
use core::iter::IntoIterator;

View file

@ -1,7 +1,7 @@
use super::hal::blocking::spi;
use super::hal::spi::{Mode, Phase, Polarity};
use super::hal::digital::v2::OutputPin;
use super::{Interface, Error};
use embedded_hal::blocking::spi;
use embedded_hal::spi::{Mode, Phase, Polarity};
use embedded_hal::digital::v2::OutputPin;
use crate::{Interface, Error};
/// SPI mode
pub const MODE: Mode = Mode {