summaryrefslogtreecommitdiff
path: root/wasp/wasp.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-05 08:32:35 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-06 21:04:20 (GMT)
commit8c35282214dc58ac4ea7edcf019b03bb0d9dc54c (patch)
tree46c83f02acdfd5017d59969c5f747451734ab847 /wasp/wasp.py
parent40b2482165079ef3574e1ad256e5edecba3551f1 (diff)
wasp: Rename Debounce to PinHandler
Debounce was a lousy name...
Diffstat (limited to 'wasp/wasp.py')
-rw-r--r--wasp/wasp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py
index 899fb7e..e51454e 100644
--- a/wasp/wasp.py
+++ b/wasp/wasp.py
@@ -39,8 +39,8 @@ class EventMask():
SWIPE_UPDOWN = 0x0004
BUTTON = 0x0008
-class Debounce(object):
- """Pin (and Signal) debounce wrapper.
+class PinHandler():
+ """Pin (and Signal) event generator.
TODO: Currently this driver doesn't actually implement any
debounce but it will!
@@ -87,7 +87,7 @@ class Manager():
self.charging = True
self._brightness = 2
- self._button = Debounce(watch.button)
+ self._button = PinHandler(watch.button)
# TODO: Eventually these should move to main.py
self.register(ClockApp(), True)