From 99ddc788d660b42f905ba4daa3ade7050033f8e3 Mon Sep 17 00:00:00 2001 From: txoof Date: Wed, 30 Oct 2019 20:15:55 +0100 Subject: [PATCH] fix issue #36 in main branch https://github.com/waveshare/e-Paper/issues/36 --- .../python/lib/waveshare_epd/epdconfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epdconfig.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epdconfig.py index 861f43d..7675f62 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epdconfig.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epdconfig.py @@ -68,8 +68,10 @@ class RaspberryPi: self.GPIO.setup(self.DC_PIN, self.GPIO.OUT) self.GPIO.setup(self.CS_PIN, self.GPIO.OUT) self.GPIO.setup(self.BUSY_PIN, self.GPIO.IN) + self.SPI = spidev.SpiDev(0, 0) self.SPI.max_speed_hz = 4000000 self.SPI.mode = 0b00 + return 0 def module_exit(self):