summaryrefslogtreecommitdiff
path: root/wasp/drivers/st7789.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-03 19:09:16 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-03 19:09:16 (GMT)
commit8168dd5939fcad61890d4ab988fcb0cbfbe4dbae (patch)
tree47d3f4867c9d33496a9f1dd4b1880de618870bdd /wasp/drivers/st7789.py
parent38c18b640327b653932468e811d6767f65ce0e27 (diff)
wasp: st7789: Add positioning support to rleblit
Diffstat (limited to 'wasp/drivers/st7789.py')
-rw-r--r--wasp/drivers/st7789.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wasp/drivers/st7789.py b/wasp/drivers/st7789.py
index 7629c07..933df8d 100644
--- a/wasp/drivers/st7789.py
+++ b/wasp/drivers/st7789.py
@@ -94,9 +94,9 @@ class ST7789(object):
self.write_data(self.linebuffer)
@micropython.native
- def rleblit(self, image, fg=0xffff, bg=0):
+ def rleblit(self, image, pos=(0, 0), fg=0xffff, bg=0):
(sx, sy, rle) = image
- self.set_window()
+ self.set_window(pos[0], pos[1], sx, sy)
# TODO: rework algorithm to allow us to reuse the line buffer
buf = bytearray(2*sx)