summaryrefslogtreecommitdiff
path: root/wasp/drivers
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-19 19:47:51 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-19 19:57:08 (GMT)
commitb508f4dc266be0c5142faf8089be09e9924e28f1 (patch)
tree57f167c7f73b3c181ac9939fcd24581f99ae3719 /wasp/drivers
parent0c4754fc743689b76ee92e6ce4b38f5a45b242cb (diff)
wasp: Add a simple font renderer
Diffstat (limited to 'wasp/drivers')
-rw-r--r--wasp/drivers/st7789.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wasp/drivers/st7789.py b/wasp/drivers/st7789.py
index 1ec1ed4..d57c09b 100644
--- a/wasp/drivers/st7789.py
+++ b/wasp/drivers/st7789.py
@@ -93,6 +93,10 @@ class ST7789(object):
self.write_data(bytearray([y >> 8, y & 0xff, yp >> 8, yp & 0xff]))
self.write_cmd(_RAMWR)
+ def rawblit(self, buf, x, y, width, height):
+ self.set_window(x, y, width, height)
+ self.write_data(buf)
+
def fill(self, bg, x=0, y=0, w=None, h=None):
if not w:
w = self.width - x