kopia lustrzana https://github.com/micropython/micropython
drivers/display/lcd160cr.py: In fast_spi, send command before flushing.
The intention of oflush() is to flush the "fast SPI" command itself so that the SPI object is ready to use when the function returns.pull/3378/merge
rodzic
7c4f98db85
commit
dc77fdb7d4
|
@ -428,9 +428,9 @@ class LCD160CR:
|
|||
self._send(self.buf19)
|
||||
|
||||
def fast_spi(self, flush=True):
|
||||
self._send(b'\x02\x12')
|
||||
if flush:
|
||||
self.oflush()
|
||||
self._send(b'\x02\x12')
|
||||
return self.spi
|
||||
|
||||
def show_framebuf(self, buf):
|
||||
|
|
Ładowanie…
Reference in New Issue