diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-09 21:32:34 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-09 21:32:34 (GMT) |
| commit | 820764081ec4327cdc294d52fa6a1d441f220d75 (patch) | |
| tree | c3297a6566ec19403517657fce693487c550e71a /wasp/drivers | |
| parent | 69bc452c65980903b309d075087941c5f5430cb1 (diff) | |
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.
Diffstat (limited to 'wasp/drivers')
| -rw-r--r-- | wasp/drivers/st7789.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wasp/drivers/st7789.py b/wasp/drivers/st7789.py index b7edf2e..89ebc4c 100644 --- a/wasp/drivers/st7789.py +++ b/wasp/drivers/st7789.py @@ -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) |
