mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Make FishDish Button pull down
This commit is contained in:
@@ -35,7 +35,7 @@ class FishDish(TrafficLights):
|
||||
red, amber, green = (9, 22, 4)
|
||||
super(FishDish, self).__init__(red, amber, green)
|
||||
self.buzzer = Buzzer(8)
|
||||
self.button = Button(7)
|
||||
self.button = Button(pin=7, pull_up=False)
|
||||
self._all = tuple(list(self._lights) + [self.buzzer])
|
||||
|
||||
def on(self):
|
||||
|
||||
Reference in New Issue
Block a user