1
0
Fork 0

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.
This commit is contained in:
Daniel Thompson 2020-01-28 18:34:00 +00:00
parent 0917d5135d
commit e88165b429

View file

@ -83,6 +83,7 @@ class ST7789(object):
for y in range(self.height): for y in range(self.height):
self.write_data(self.linebuffer) self.write_data(self.linebuffer)
@micropython.native
def rleblit(self, image, fg=0xffff, bg=0): def rleblit(self, image, fg=0xffff, bg=0):
(sx, sy, rle) = image (sx, sy, rle) = image
self.set_window() self.set_window()