drivers: st7789: Automatically park ready for the next call to write data
This makes line-by-line drawing more efficient because don't have to handle the dc line. The optimization targets font rendering and if good for slightly less than 10% rendering improvement.
This commit is contained in:
parent
69bc452c65
commit
820764081e
1 changed files with 1 additions and 1 deletions
|
@ -146,9 +146,9 @@ class ST7789_SPI(ST7789):
|
|||
self.cs(0)
|
||||
self.spi.write(bytearray([cmd]))
|
||||
self.cs(1)
|
||||
self.dc(1)
|
||||
|
||||
def write_data(self, buf):
|
||||
self.dc(1)
|
||||
self.cs(0)
|
||||
self.spi.write(buf)
|
||||
self.cs(1)
|
||||
|
|
Loading…
Reference in a new issue