diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-07-09 21:29:57 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-07-09 21:29:57 (GMT) |
| commit | c739df119b06b59b26c8f0c314d99fb453646f28 (patch) | |
| tree | f9430b0d8718e1947b9b72e6031d58a1321926c4 | |
| parent | c87bcd8693ab8627ad2946aef86a6852ea10b44a (diff) | |
boards: simulator: Swap up/down swipe detection
Fix swipe detection so it matches the real device.
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
| -rw-r--r-- | wasp/boards/simulator/display.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wasp/boards/simulator/display.py b/wasp/boards/simulator/display.py index 9e5c622..273f705 100644 --- a/wasp/boards/simulator/display.py +++ b/wasp/boards/simulator/display.py @@ -153,7 +153,7 @@ class CST816SSim(): elif abs(mv_x) > abs(mv_y): self.regs[1] = 4 if mv_x > 0 else 3 else: - self.regs[1] = 2 if mv_y > 0 else 1 + self.regs[1] = 1 if mv_y > 0 else 2 self.regs[4] = up_x; self.regs[6] = up_y; |
