Skip to content

Commit

Permalink
Fix Epd7in5_V2 fading out during DisplayFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Büttner committed Dec 16, 2024
1 parent 6992771 commit 679211d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/epd7in5_v2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,16 @@ where
// and as per specs:
// https://www.waveshare.com/w/upload/6/60/7.5inch_e-Paper_V2_Specification.pdf

self.cmd_with_data(spi, Command::BoosterSoftStart, &[0x17, 0x17, 0x27, 0x17])?;
self.cmd_with_data(spi, Command::PowerSetting, &[0x07, 0x17, 0x3F, 0x3F])?;
self.cmd_with_data(spi, Command::PowerSetting, &[0x07, 0x07, 0x3f, 0x3f])?;
self.cmd_with_data(spi, Command::BoosterSoftStart, &[0x17, 0x17, 0x28, 0x17])?;
self.command(spi, Command::PowerOn)?;
delay.delay_ms(100);
self.wait_until_idle(spi, delay)?;
self.cmd_with_data(spi, Command::PanelSetting, &[0x1F])?;
self.cmd_with_data(spi, Command::PllControl, &[0x06])?;
self.cmd_with_data(spi, Command::TconResolution, &[0x03, 0x20, 0x01, 0xE0])?;
self.cmd_with_data(spi, Command::DualSpi, &[0x00])?;
self.cmd_with_data(spi, Command::TconSetting, &[0x22])?;
self.cmd_with_data(spi, Command::VcomAndDataIntervalSetting, &[0x10, 0x07])?;
self.wait_until_idle(spi, delay)?;
self.cmd_with_data(spi, Command::TconSetting, &[0x22])?;
Ok(())
}
}
Expand Down

0 comments on commit 679211d

Please sign in to comment.