07-13-2020, 06:46 PM
(This post was last modified: 07-13-2020, 07:24 PM by kit1cat.
Edit Reason: added
)
(07-13-2020, 06:03 PM)TookaFace Wrote: Its the same error i had, before i commented the line in
Code:/usr/local/lib/python2.7/dist-packages/luma/core/interface/serial.py
279 self._spi = spi or self.__spidev__()
280 self._spi.open(port, device)
281 # self._spi.cshigh = cs_high
Had already commented line 281, just edited it again using notepad in Windows but still getting the same error.
Code:
try:
self._spi = spi or self.__spidev__()
self._spi.open(port, device)
# self._spi.cshigh = cs_high
except (IOError, OSError) as e:
if e.errno == errno.ENOENT:
raise luma.core.error.DeviceNotFoundError('SPI device not found')
else: # pragma: no cover
raise