Fixed examples and more small improvements

This commit is contained in:
Chris
2018-10-19 17:00:15 +02:00
parent 3b0b5962ec
commit 520317f351
9 changed files with 52 additions and 33 deletions
+4 -2
View File
@@ -6,8 +6,10 @@ extern crate eink_waveshare_rs;
use eink_waveshare_rs::{
EPD1in54,
Buffer1in54,
epd1in54::{
EPD1in54,
Buffer1in54,
},
graphics::{Display, DisplayRotation},
color::Color,
WaveshareDisplay,
+5 -3
View File
@@ -6,8 +6,10 @@ extern crate eink_waveshare_rs;
use eink_waveshare_rs::{
EPD4in2,
Buffer4in2,
epd4in2::{
EPD4in2,
Buffer4in2,
},
graphics::{Display, DisplayRotation},
color::Color,
WaveshareDisplay,
@@ -162,7 +164,7 @@ fn run() -> Result<(), std::io::Error> {
println!("Now test new graphics with default rotation and some special stuff:");
let mut display = DisplayEink42BlackWhite::default();
display.clear_buffer(Color::White);
// draw a analog clock
display.draw(