diff --git a/Cargo.toml b/Cargo.toml index 2c6352a..be5ceed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,19 +16,19 @@ edition = "2018" # travis-ci = { repository = "caemor/epd-waveshare" } [dependencies] -embedded-graphics = { version = "0.7.1", optional = true} embedded-graphics-core = { version = "0.3.2", optional = true} embedded-hal = {version = "0.2.4", features = ["unproven"]} bit_field = "0.10.1" [dev-dependencies] +embedded-graphics = "0.7.1" linux-embedded-hal = "0.3" embedded-hal-mock = "0.8" [features] default = ["graphics"] -graphics = ["embedded-graphics","embedded-graphics-core"] +graphics = ["embedded-graphics-core"] # Offers an alternative fast full lut for type_a displays, but the refreshed screen isnt as clean looking type_a_alternative_faster_lut = [] diff --git a/src/color.rs b/src/color.rs index 8867978..bff5739 100644 --- a/src/color.rs +++ b/src/color.rs @@ -1,9 +1,9 @@ //! B/W Color for EPDs #[cfg(feature = "graphics")] -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; #[cfg(feature = "graphics")] -use embedded_graphics::pixelcolor::PixelColor; +use embedded_graphics_core::pixelcolor::PixelColor; #[cfg(feature = "graphics")] pub use BinaryColor::Off as White; diff --git a/src/epd1in54/graphics.rs b/src/epd1in54/graphics.rs index 8c4a9ec..ec9a59d 100644 --- a/src/epd1in54/graphics.rs +++ b/src/epd1in54/graphics.rs @@ -1,6 +1,6 @@ use crate::epd1in54::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 1in54 EPD diff --git a/src/epd1in54b/graphics.rs b/src/epd1in54b/graphics.rs index 9fca3ef..7a64472 100644 --- a/src/epd1in54b/graphics.rs +++ b/src/epd1in54b/graphics.rs @@ -1,6 +1,6 @@ use crate::epd1in54b::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 1in54 EPD diff --git a/src/epd1in54c/graphics.rs b/src/epd1in54c/graphics.rs index d08a7ff..028d4fe 100644 --- a/src/epd1in54c/graphics.rs +++ b/src/epd1in54c/graphics.rs @@ -1,6 +1,6 @@ use crate::epd1in54c::{DEFAULT_BACKGROUND_COLOR, HEIGHT, NUM_DISPLAY_BITS, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 1in54c EPD diff --git a/src/epd2in13_v2/graphics.rs b/src/epd2in13_v2/graphics.rs index 0d04bf7..0bb1e78 100644 --- a/src/epd2in13_v2/graphics.rs +++ b/src/epd2in13_v2/graphics.rs @@ -1,7 +1,7 @@ use crate::buffer_len; use crate::epd2in13_v2::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 2in13 v2 EPD diff --git a/src/epd2in7b/graphics.rs b/src/epd2in7b/graphics.rs index c460a9c..e344be7 100644 --- a/src/epd2in7b/graphics.rs +++ b/src/epd2in7b/graphics.rs @@ -1,6 +1,6 @@ use crate::epd2in7b::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 2in7B EPD diff --git a/src/epd2in9/graphics.rs b/src/epd2in9/graphics.rs index 5dba792..8678c9c 100644 --- a/src/epd2in9/graphics.rs +++ b/src/epd2in9/graphics.rs @@ -1,6 +1,6 @@ use crate::epd2in9::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Display with Fullsize buffer for use with the 2in9 EPD diff --git a/src/epd2in9_v2/graphics.rs b/src/epd2in9_v2/graphics.rs index 6fc6308..e121adb 100644 --- a/src/epd2in9_v2/graphics.rs +++ b/src/epd2in9_v2/graphics.rs @@ -1,6 +1,6 @@ use crate::epd2in9::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Display with Fullsize buffer for use with the 2in9 EPD V2 diff --git a/src/epd2in9bc/graphics.rs b/src/epd2in9bc/graphics.rs index 1044aee..dd8ce9d 100644 --- a/src/epd2in9bc/graphics.rs +++ b/src/epd2in9bc/graphics.rs @@ -1,6 +1,6 @@ use crate::epd2in9bc::{DEFAULT_BACKGROUND_COLOR, HEIGHT, NUM_DISPLAY_BITS, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 2in9b/c EPD diff --git a/src/epd4in2/graphics.rs b/src/epd4in2/graphics.rs index cc98590..739efb8 100644 --- a/src/epd4in2/graphics.rs +++ b/src/epd4in2/graphics.rs @@ -1,6 +1,6 @@ use crate::epd4in2::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 4in2 EPD diff --git a/src/epd7in5/graphics.rs b/src/epd7in5/graphics.rs index 4c7896e..e087cdc 100644 --- a/src/epd7in5/graphics.rs +++ b/src/epd7in5/graphics.rs @@ -1,6 +1,6 @@ use crate::epd7in5::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 7in5 EPD diff --git a/src/epd7in5_hd/graphics.rs b/src/epd7in5_hd/graphics.rs index 1b13ec2..c731b1b 100644 --- a/src/epd7in5_hd/graphics.rs +++ b/src/epd7in5_hd/graphics.rs @@ -1,6 +1,6 @@ use crate::epd7in5_hd::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 7in5 EPD diff --git a/src/epd7in5_v2/graphics.rs b/src/epd7in5_v2/graphics.rs index 4cc905f..6550064 100644 --- a/src/epd7in5_v2/graphics.rs +++ b/src/epd7in5_v2/graphics.rs @@ -1,6 +1,6 @@ use crate::epd7in5_v2::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH}; use crate::graphics::{Display, DisplayRotation}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Full size buffer for use with the 7in5 EPD diff --git a/src/graphics.rs b/src/graphics.rs index 1fbb5a4..5a19e4a 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -2,7 +2,7 @@ use crate::buffer_len; use crate::color::{Color, OctColor, TriColor}; -use embedded_graphics::pixelcolor::BinaryColor; +use embedded_graphics_core::pixelcolor::BinaryColor; use embedded_graphics_core::prelude::*; /// Displayrotation