Commit f7eb3565 authored by Agrigor's avatar Agrigor
Browse files

minor changes

parent 8bfb48cb
...@@ -65,9 +65,7 @@ class Buzzer: ...@@ -65,9 +65,7 @@ class Buzzer:
observer.notify(self) observer.notify(self)
def create_event(self): def create_event(self):
GPIO.add_event_detect(self.pin, GPIO.RISING, GPIO.add_event_detect(self.pin, GPIO.RISING, callback=self.notify_observer, bouncetime=self.bounce)
callback=self.notify_observer,
bouncetime=self.bounce)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment