test branch of embedded-graphics

This commit is contained in:
Chris
2018-10-18 23:15:14 +02:00
parent a75a9b74bd
commit e1b76c73a3
3 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -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"] }
+6 -2
View File
@@ -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(),
);