diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-01-23 18:59:43 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-01-28 18:45:15 (GMT) |
| commit | 3157bcc3105d3a47e045ec8e0605d5dd31f807b1 (patch) | |
| tree | d08b82855f371596cb0252f35fb3d22b60c16762 /wasp/pinetime.py | |
| parent | 1ec5c11ea737412537580e9efbf66d5e0226f662 (diff) | |
wasp: drivers: st7789: Replace with custom uPy driver
This driver was rewritten from scratch, borrowing some idioms
from the SSD1306 driver to ensure an efficient implementation
in uPy.
Diffstat (limited to 'wasp/pinetime.py')
| -rw-r--r-- | wasp/pinetime.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wasp/pinetime.py b/wasp/pinetime.py index a0858f5..b5afa33 100644 --- a/wasp/pinetime.py +++ b/wasp/pinetime.py @@ -1,7 +1,7 @@ from machine import Pin from machine import SPI -from drivers.st7789 import ST7789 +from drivers.st7789 import ST7789_SPI def st7789(): spi = SPI(0) @@ -14,6 +14,6 @@ def st7789(): rst = Pin("P26", Pin.OUT) bl = Pin("P22", Pin.OUT) - tft = ST7789(spi, cs=cs, dc=dc, rst=rst) + tft = ST7789_SPI(240, 240, spi, cs=cs, dc=dc, res=rst) bl.off() # active low return tft |
