From d0f18a15fad28f80ae3d486df4efd9916b22dc22 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 3 Feb 2020 19:14:44 +0000 Subject: [PATCH] wasp: simulator: Fix column and row select --- wasp/boards/simulator/display.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wasp/boards/simulator/display.py b/wasp/boards/simulator/display.py index dc303d9..72423f9 100644 --- a/wasp/boards/simulator/display.py +++ b/wasp/boards/simulator/display.py @@ -62,11 +62,11 @@ class ST7789Sim(object): pixelview[self.y][self.x] = pixel self.x += 1 - if self.x > self.rowclip[1]: - self.x = self.rowclip[0] + if self.x > self.colclip[1]: + self.x = self.colclip[0] self.y += 1 - if self.y > self.colclip[1]: - self.y = self.colclip[0] + if self.y > self.rowclip[1]: + self.y = self.rowclip[0] # Forcibly release the surface to ensure it is unlocked del pixelview