From 7f7b5989c61e779080b0f1183e5eddc37cd0f0e4 Mon Sep 17 00:00:00 2001 From: peterhinch Date: Tue, 6 Dec 2022 09:11:25 +0000 Subject: [PATCH] writer.py: CWriter has create_color method for 4-bit drivers. --- writer/WRITER.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writer/WRITER.md b/writer/WRITER.md index 83d7e96..1ef6ab2 100644 --- a/writer/WRITER.md +++ b/writer/WRITER.md @@ -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