mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Merge pull request #65 from ryanteck/master
Fix TrafficHat numbering to match promo photos
This commit is contained in:
@@ -208,7 +208,7 @@ class TrafficHat(FishDish):
|
|||||||
Ryanteck Traffic HAT: traffic light LEDs, a button and a buzzer.
|
Ryanteck Traffic HAT: traffic light LEDs, a button and a buzzer.
|
||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
red, amber, green = (22, 23, 24)
|
green, amber, red = (22, 23, 24)
|
||||||
super(FishDish, self).__init__(red, amber, green)
|
super(FishDish, self).__init__(red, amber, green)
|
||||||
self.buzzer = Buzzer(5)
|
self.buzzer = Buzzer(5)
|
||||||
self.button = Button(25)
|
self.button = Button(25)
|
||||||
|
|||||||
Reference in New Issue
Block a user