kopia lustrzana https://github.com/peterhinch/micropython-font-to-py
writer.py: CWriter has create_color method for 4-bit drivers.
rodzic
181061f25e
commit
7f7b5989c6
|
@ -373,7 +373,7 @@ ssd = SSD(spi, cs, dc, rst)
|
||||||
# Define a few colors
|
# Define a few colors
|
||||||
BLACK = CWriter.create_color(ssd, 0, 0, 0, 0)
|
BLACK = CWriter.create_color(ssd, 0, 0, 0, 0)
|
||||||
GREEN = CWriter.create_color(ssd, 1, 0, 255, 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)
|
YELLOW = CWriter.create_color(ssd, 3, 255, 255, 0)
|
||||||
# Demo drawing geometric shapes using underlying framebuf methods
|
# Demo drawing geometric shapes using underlying framebuf methods
|
||||||
rhs = ssd.width -1
|
rhs = ssd.width -1
|
||||||
|
|
Ładowanie…
Reference in New Issue