From e1b76c73a38e29c78b0dd8f3475869344d4256c7 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 18 Oct 2018 23:15:14 +0200 Subject: [PATCH] test branch of embedded-graphics --- Cargo.toml | 3 ++- examples/embedded_linux_epd4in2/Cargo.toml | 3 ++- examples/embedded_linux_epd4in2/src/main.rs | 8 ++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index eb2cd11..ee18ca5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,8 @@ epd4in2_fast_update = [] [dependencies] -embedded-graphics = "0.4.2" +# embedded-graphics = "0.4.2" +embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "test-change"} [dependencies.embedded-hal] features = ["unproven"] diff --git a/examples/embedded_linux_epd4in2/Cargo.toml b/examples/embedded_linux_epd4in2/Cargo.toml index 845ff86..19b3912 100644 --- a/examples/embedded_linux_epd4in2/Cargo.toml +++ b/examples/embedded_linux_epd4in2/Cargo.toml @@ -11,6 +11,7 @@ eink_waveshare_rs = { path = "../../", default-features = false, features = ["ep linux-embedded-hal = "0.2.0" -embedded-graphics = "0.4.2" +# embedded-graphics = "0.4.2" +embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "test-change"} embedded-hal = { version = "0.2.1", features = ["unproven"] } diff --git a/examples/embedded_linux_epd4in2/src/main.rs b/examples/embedded_linux_epd4in2/src/main.rs index 5088139..43358c2 100644 --- a/examples/embedded_linux_epd4in2/src/main.rs +++ b/examples/embedded_linux_epd4in2/src/main.rs @@ -193,15 +193,15 @@ fn run() -> Result<(), std::io::Error> { display.set_rotation(DisplayRotation::Rotate0); display.draw( Font6x8::render_str("Rotate 0!") - .with_fill(Some(Color::White)) .with_stroke(Some(Color::Black)) + .with_fill(Some(Color::White)) .translate(Coord::new(5, 50)) .into_iter(), ); display.draw( Font6x8::render_str("Rotate 0 - inverse!") - .with_fill(Some(Color::Black)) .with_stroke(Some(Color::White)) + .with_fill(Some(Color::Black)) .translate(Coord::new(50, 70)) .into_iter(), ); @@ -241,6 +241,8 @@ fn run() -> Result<(), std::io::Error> { display.set_rotation(DisplayRotation::Rotate180); display.draw( Font6x8::render_str("Rotate 180!") + .with_stroke(Some(Color::Black)) + .with_fill(Some(Color::White)) .translate(Coord::new(5, 50)) .into_iter(), ); @@ -258,6 +260,8 @@ fn run() -> Result<(), std::io::Error> { display.set_rotation(DisplayRotation::Rotate270); display.draw( Font6x8::render_str("Rotate 270!") + .with_stroke(Some(Color::Black)) + .with_fill(Some(Color::White)) .translate(Coord::new(5, 50)) .into_iter(), );