Browse Source

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

embedded-hal-1.0
Robin Appelman 5 years ago
parent
commit
674b88e327
  1. 2
      src/epd7in5_v2/mod.rs
  2. 2
      src/interface.rs

2
src/epd7in5_v2/mod.rs

@ -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

2
src/interface.rs

@ -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);

Loading…
Cancel
Save