use correct 7in5_v2 reset delay, not the b/c variant

embedded-hal-1.0
Robin Appelman 2020-10-19 16:51:41 +02:00
parent 5cb7de5929
commit 674b88e327
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ where
delay: &mut DELAY,
) -> Result<(), SPI::Error> {
// Reset the device
self.interface.reset(delay, 4);
self.interface.reset(delay, 2);
// V2 procedure as described here:
// https://github.com/waveshare/e-Paper/blob/master/RaspberryPi%26JetsonNano/python/lib/waveshare_epd/epd7in5bc_V2.py

View File

@ -161,7 +161,7 @@ where
///
/// The timing of keeping the reset pin low seems to be important and different per device.
/// Most displays seem to require keeping it low for 10ms, but the 7in5_v2 only seems to reset
/// properly with 4ms
/// properly with 2ms
pub(crate) fn reset<DELAY: DelayMs<u8>>(&mut self, delay: &mut DELAY, duration: u8) {
let _ = self.rst.set_high();
delay.delay_ms(10);