Skip to content

Commit

Permalink
Merge pull request #156 from fakusb/1in54_v2_init_fix
Browse files Browse the repository at this point in the history
Fixed init code for epd1in54_vs by adding set_lut to init
  • Loading branch information
caemor authored Jan 15, 2024
2 parents 7a0cef7 + 819391d commit 54a69e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/epd1in54_v2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ where

self.set_ram_area(spi, delay, 0, 0, WIDTH - 1, HEIGHT - 1)?;

self.interface
.cmd_with_data(spi, Command::BorderWaveformControl, &[0x1])?;

self.interface.cmd_with_data(
spi,
Command::TemperatureSensorSelection,
Expand All @@ -82,6 +79,9 @@ where

self.set_ram_counter(spi, delay, 0, 0)?;

//Initialize the lookup table with a refresh waveform
self.set_lut(spi, delay, None)?;

self.wait_until_idle(spi, delay)?;
Ok(())
}
Expand Down

0 comments on commit 54a69e2

Please sign in to comment.