mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-04 06:16:42 +00:00
Include set_lut in WaveshareDisplay Trait
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user