mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Edition 2018 (#24)
* "cargo fix --edition" for the library * Switch to 2018 edition * Use cargo fix edition-idioms and remove the internal renaming from embedded_hal to hal * Updated Readme * run cargo fmt
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use epd2in9::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH};
|
||||
use crate::epd2in9::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH};
|
||||
|
||||
/// Full size buffer for use with the 2in9 EPD
|
||||
///
|
||||
@@ -20,7 +20,7 @@ impl Default for Buffer2in9 {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use graphics::Display;
|
||||
use crate::graphics::Display;
|
||||
|
||||
// test buffer length
|
||||
#[test]
|
||||
|
||||
+6
-6
@@ -39,24 +39,24 @@ pub const WIDTH: u32 = 128;
|
||||
pub const HEIGHT: u32 = 296;
|
||||
pub const DEFAULT_BACKGROUND_COLOR: Color = Color::White;
|
||||
|
||||
use hal::{
|
||||
use embedded_hal::{
|
||||
blocking::{delay::*, spi::Write},
|
||||
digital::*,
|
||||
};
|
||||
|
||||
use type_a::{
|
||||
use crate::type_a::{
|
||||
command::Command,
|
||||
constants::{LUT_FULL_UPDATE, LUT_PARTIAL_UPDATE},
|
||||
};
|
||||
|
||||
use color::Color;
|
||||
use crate::color::Color;
|
||||
|
||||
use traits::*;
|
||||
use crate::traits::*;
|
||||
|
||||
use interface::DisplayInterface;
|
||||
use crate::interface::DisplayInterface;
|
||||
|
||||
mod graphics;
|
||||
pub use epd2in9::graphics::Buffer2in9;
|
||||
pub use crate::epd2in9::graphics::Buffer2in9;
|
||||
|
||||
/// EPD2in9 driver
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user