dont forget set frequency (as we dont use busdevice)
This commit is contained in:
parent
82ce2b28d3
commit
62676fef5b
1 changed files with 5 additions and 0 deletions
|
|
@ -71,6 +71,11 @@ class Adafruit_EPD: # pylint: disable=too-many-instance-attributes, too-many-pub
|
|||
|
||||
# SPI interface (required)
|
||||
self.spi_device = spi
|
||||
while not self.spi_device.try_lock():
|
||||
pass
|
||||
self.spi_device.configure(baudrate=1000000) # 1 Mhz
|
||||
self.spi_device.unlock()
|
||||
|
||||
self._spibuf = bytearray(1)
|
||||
self._single_byte_tx = False
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue