Closed
Description
This arose here. The driver sets up a passed SPI instance as follows:
def __init__(self, spi, pincs, height=240, width=400, vcom=False):
spi.init(baudrate=2_000_000, firstbit=machine.SPI.LSB)
self._spi = spi
which fails with NotImplementedError: LSB
(hard SPI) or ValueError:firstbit must be MSB
(soft SPI).
The constant LSB
does exist.
>>> dir(SPI)
['__class__', '__name__', 'read', 'readinto', 'write', '__bases__', '__dict__', 'LSB', 'MSB', 'deinit', 'init', 'write_readinto']