mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-04 06:16:42 +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 epd1in54::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH};
|
||||
use crate::epd1in54::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH};
|
||||
|
||||
/// Full size buffer for use with the 1in54 EPD
|
||||
///
|
||||
@@ -20,11 +20,11 @@ impl Default for Buffer1in54BlackWhite {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use color::Color;
|
||||
use crate::color::Color;
|
||||
use crate::graphics::{Display, DisplayRotation};
|
||||
use embedded_graphics::coord::Coord;
|
||||
use embedded_graphics::prelude::*;
|
||||
use embedded_graphics::primitives::Line;
|
||||
use graphics::{Display, DisplayRotation};
|
||||
|
||||
// test buffer length
|
||||
#[test]
|
||||
|
||||
+6
-6
@@ -38,24 +38,24 @@ pub const HEIGHT: u32 = 200;
|
||||
//const DPI: u16 = 184;
|
||||
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::{RefreshLUT, WaveshareDisplay};
|
||||
use crate::traits::{RefreshLUT, WaveshareDisplay};
|
||||
|
||||
use interface::DisplayInterface;
|
||||
use crate::interface::DisplayInterface;
|
||||
|
||||
mod graphics;
|
||||
pub use epd1in54::graphics::Buffer1in54BlackWhite as Buffer1in54;
|
||||
pub use crate::epd1in54::graphics::Buffer1in54BlackWhite as Buffer1in54;
|
||||
|
||||
/// EPD1in54 driver
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user