diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-02-03 19:09:16 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-02-03 19:09:16 (GMT) |
| commit | 8168dd5939fcad61890d4ab988fcb0cbfbe4dbae (patch) | |
| tree | 47d3f4867c9d33496a9f1dd4b1880de618870bdd /wasp | |
| parent | 38c18b640327b653932468e811d6767f65ce0e27 (diff) | |
wasp: st7789: Add positioning support to rleblit
Diffstat (limited to 'wasp')
| -rw-r--r-- | wasp/drivers/st7789.py | 4 |
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) |
