From 8c35282214dc58ac4ea7edcf019b03bb0d9dc54c Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 5 Apr 2020 09:32:35 +0100 Subject: [PATCH] wasp: Rename Debounce to PinHandler Debounce was a lousy name... --- wasp/wasp.py | 6 +++--- 1 file 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)