wasp: Rename Debounce to PinHandler
Debounce was a lousy name...
This commit is contained in:
parent
40b2482165
commit
8c35282214
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue