mirror of
https://github.com/yuri91/ili9341-rs.git
synced 2024-11-21 22:30:59 +00:00
Edition 2018
This commit is contained in:
parent
f958482f98
commit
c51eaa4ffa
3 changed files with 8 additions and 9 deletions
|
@ -7,6 +7,7 @@ categories = ["embedded", "hardware-support", "no-std"]
|
||||||
keywords = ["embedded-hal-driver", "display", "LCD"]
|
keywords = ["embedded-hal-driver", "display", "LCD"]
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
repository = "https://github.com/yuri91/ili9341-rs"
|
repository = "https://github.com/yuri91/ili9341-rs"
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
extern crate embedded_hal as hal;
|
|
||||||
|
|
||||||
#[cfg(feature = "graphics")]
|
#[cfg(feature = "graphics")]
|
||||||
extern crate embedded_graphics;
|
extern crate embedded_graphics;
|
||||||
|
|
||||||
use hal::blocking::delay::DelayMs;
|
use embedded_hal::blocking::delay::DelayMs;
|
||||||
use hal::blocking::spi::{Write, Transfer};
|
use embedded_hal::blocking::spi::{Write, Transfer};
|
||||||
use hal::digital::v2::OutputPin;
|
use embedded_hal::digital::v2::OutputPin;
|
||||||
|
|
||||||
use core::fmt::Debug;
|
use core::fmt::Debug;
|
||||||
use core::iter::IntoIterator;
|
use core::iter::IntoIterator;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use super::hal::blocking::spi;
|
use embedded_hal::blocking::spi;
|
||||||
use super::hal::spi::{Mode, Phase, Polarity};
|
use embedded_hal::spi::{Mode, Phase, Polarity};
|
||||||
use super::hal::digital::v2::OutputPin;
|
use embedded_hal::digital::v2::OutputPin;
|
||||||
use super::{Interface, Error};
|
use crate::{Interface, Error};
|
||||||
|
|
||||||
/// SPI mode
|
/// SPI mode
|
||||||
pub const MODE: Mode = Mode {
|
pub const MODE: Mode = Mode {
|
||||||
|
|
Loading…
Reference in a new issue