diff --git a/Cargo.toml b/Cargo.toml index ee10123..eb2cd11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,8 +30,6 @@ epd4in2_fast_update = [] [dependencies] embedded-graphics = "0.4.2" -#embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"} - [dependencies.embedded-hal] features = ["unproven"] diff --git a/examples/embedded_linux_epd4in2/Cargo.toml b/examples/embedded_linux_epd4in2/Cargo.toml index f12dbbd..845ff86 100644 --- a/examples/embedded_linux_epd4in2/Cargo.toml +++ b/examples/embedded_linux_epd4in2/Cargo.toml @@ -12,6 +12,5 @@ eink_waveshare_rs = { path = "../../", default-features = false, features = ["ep linux-embedded-hal = "0.2.0" embedded-graphics = "0.4.2" -#embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"} embedded-hal = { version = "0.2.1", features = ["unproven"] } diff --git a/src/drawing.rs b/src/drawing.rs index a610a1e..ccc0c4e 100644 --- a/src/drawing.rs +++ b/src/drawing.rs @@ -61,7 +61,7 @@ impl Drawing for DisplayEink42BlackWhite { where T: Iterator> { - use epd4in2::constants::{DEFAULT_BACKGROUND_COLOR, WIDTH, HEIGHT}; + use epd4in2::constants::WIDTH; for Pixel(UnsignedCoord(x,y), color) in item_pixels { let (idx, bit) = match self.rotation { DisplayRotation::Rotate0 | DisplayRotation::Rotate180 => ( @@ -96,9 +96,7 @@ mod tests { use super::*; use epd4in2; use embedded_graphics::coord::Coord; - use embedded_graphics::fonts::Font6x8; - use embedded_graphics::prelude::*; - use embedded_graphics::primitives::{Circle, Line}; + use embedded_graphics::primitives::Line; #[test] fn from_u8() {