summaryrefslogtreecommitdiff
path: root/wasp/clock.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-03-08 10:18:08 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-03-08 10:18:08 (GMT)
commitb5b96bd7760f76d9bb476eb835f49b3c9586ca5c (patch)
tree2c9f5e9d4682a1efc870754d2e37d680f33925a2 /wasp/clock.py
parent753a1e68f114772cd0fce765c7ec4770c8e34036 (diff)
wasp: Integrate the touch driver
At this point we are starting to bring an event model for applications but there's still a long way to go!
Diffstat (limited to 'wasp/clock.py')
-rw-r--r--wasp/clock.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wasp/clock.py b/wasp/clock.py
index c3b3c3a..5de6271 100644
--- a/wasp/clock.py
+++ b/wasp/clock.py
@@ -50,6 +50,12 @@ class ClockApp(object):
"""De-activate the application (without losing state)."""
pass
+ def sleep(self):
+ return True
+
+ def wake(self):
+ self.update()
+
def draw(self, effect=None):
"""Redraw the display from scratch."""
display = watch.display