Include set_lut in WaveshareDisplay Trait

This commit is contained in:
Chris
2018-10-30 14:56:38 +01:00
parent 63d1de0417
commit 22e3ee22b2
11 changed files with 105 additions and 101 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ fn run() -> Result<(), std::io::Error> {
// a quickly moving `Hello World!`
display.set_rotation(DisplayRotation::Rotate0);
epd.set_lut_quick(&mut spi).expect("SET LUT QUICK error");
epd.set_lut(&mut spi, Some(RefreshLUT::QUICK)).expect("SET LUT QUICK error");
let limit = 20;
for i in 0..limit {
println!("Moving Hello World. Loop {} from {}", (i+1), limit);