From e88165b429f46b6621b94828ddb686ddd2c616dd Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Tue, 28 Jan 2020 18:34:00 +0000 Subject: [PATCH] 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. --- wasp/drivers/st7789.py | 1 + 1 file changed, 1 insertion(+) 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()