1
0
Fork 0

wasp: Rename Debounce to PinHandler

Debounce was a lousy name...
This commit is contained in:
Daniel Thompson 2020-04-05 09:32:35 +01:00
parent 40b2482165
commit 8c35282214

View file

@ -39,8 +39,8 @@ class EventMask():
SWIPE_UPDOWN = 0x0004 SWIPE_UPDOWN = 0x0004
BUTTON = 0x0008 BUTTON = 0x0008
class Debounce(object): class PinHandler():
"""Pin (and Signal) debounce wrapper. """Pin (and Signal) event generator.
TODO: Currently this driver doesn't actually implement any TODO: Currently this driver doesn't actually implement any
debounce but it will! debounce but it will!
@ -87,7 +87,7 @@ class Manager():
self.charging = True self.charging = True
self._brightness = 2 self._brightness = 2
self._button = Debounce(watch.button) self._button = PinHandler(watch.button)
# TODO: Eventually these should move to main.py # TODO: Eventually these should move to main.py
self.register(ClockApp(), True) self.register(ClockApp(), True)