summaryrefslogtreecommitdiff
path: root/wasp
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-28 18:34:00 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-28 18:45:27 (GMT)
commite88165b429f46b6621b94828ddb686ddd2c616dd (patch)
treea584cca4faaec4227d79feb00da655d3a3910fad /wasp
parent0917d5135d73afc567f601ae81da0606b59aac01 (diff)
wasp: drivers: st7789: native code gen for rleblit
This is a useful performance boost... but there is still scope to get this a lot quicker.
Diffstat (limited to 'wasp')
-rw-r--r--wasp/drivers/st7789.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wasp/drivers/st7789.py b/wasp/drivers/st7789.py
index c3f22fc..449c8a3 100644
--- a/wasp/drivers/st7789.py
+++ b/wasp/drivers/st7789.py
@@ -83,6 +83,7 @@ class ST7789(object):
for y in range(self.height):
self.write_data(self.linebuffer)
+ @micropython.native
def rleblit(self, image, fg=0xffff, bg=0):
(sx, sy, rle) = image
self.set_window()