summaryrefslogtreecommitdiff
path: root/wasp/drivers
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-08-15 16:00:49 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-08-15 16:00:49 (GMT)
commit5ae327ea546e7e9b68cef0b17f6df6be3572ac08 (patch)
tree4e10b87cc42d44d5d81534741f6b6ef66a86986f /wasp/drivers
parenta87b3faa4aed891623cc82b667465d5ef49cac72 (diff)
wasp: Introduce a NEXT event
This is useful for devices that do not have touchscreens. It can be used to cycle through the quick ring and to check out notifications. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/drivers')
-rw-r--r--wasp/drivers/touch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wasp/drivers/touch.py b/wasp/drivers/touch.py
index 0b08653..ec97e3d 100644
--- a/wasp/drivers/touch.py
+++ b/wasp/drivers/touch.py
@@ -40,7 +40,7 @@ class TouchButton:
def get_touch_data(self, pin_obj):
"""Synthesize a right swipe during interrupt.
"""
- self.event[0] = 4
+ self.event[0] = 253 # NEXT
if self.schedule:
self.schedule(self)