use correct 7in5_v2 reset delay, not the b/c variant
parent
5cb7de5929
commit
674b88e327
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue