add more changes

This commit is contained in:
Chris
2018-10-19 16:12:22 +02:00
parent f6a894c5a3
commit a832ab9fed
4 changed files with 64 additions and 27 deletions
+3 -2
View File
@@ -7,7 +7,7 @@ extern crate eink_waveshare_rs;
use eink_waveshare_rs::{
EPD1in54,
DisplayEink1in54BlackWhite,
Buffer1in54,
graphics::{Display, DisplayRotation},
color::Color,
WaveshareDisplay,
@@ -125,7 +125,8 @@ fn run() -> Result<(), std::io::Error> {
epd.display_frame(&mut spi).expect("disp 1");
println!("Test all the rotations");
let mut display = DisplayEink1in54BlackWhite::default();
let mut buffer = Buffer1in54::default();
let mut display = Display::new(buffer.width, buffer.height, &mut buffer.buffer);
display.set_rotation(DisplayRotation::Rotate0);
display.draw(
Font6x8::render_str("Rotate 0!")