mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
use correct 7in5_v2 reset delay, not the b/c variant
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user