writer.py: CWriter has create_color method for 4-bit drivers.

pull/45/head
peterhinch 2022-12-06 09:11:25 +00:00
rodzic 181061f25e
commit 7f7b5989c6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -373,7 +373,7 @@ ssd = SSD(spi, cs, dc, rst)
# Define a few colors
BLACK = CWriter.create_color(ssd, 0, 0, 0, 0)
GREEN = CWriter.create_color(ssd, 1, 0, 255, 0)
RED = CWriter.create_color(ssd, 2, 255,0,0)
RED = CWriter.create_color(ssd, 2, 255, 0, 0)
YELLOW = CWriter.create_color(ssd, 3, 255, 255, 0)
# Demo drawing geometric shapes using underlying framebuf methods
rhs = ssd.width -1