mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Merge pull request #233 from ukBaz/ukBaz-patch-1
Correction on Traffic Lights Alternative recipe
This commit is contained in:
@@ -167,6 +167,8 @@ Alternatively::
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
from signal import pause
|
from signal import pause
|
||||||
|
|
||||||
|
lights = TrafficLights(2, 3, 4)
|
||||||
|
|
||||||
def traffic_light_sequence():
|
def traffic_light_sequence():
|
||||||
while True:
|
while True:
|
||||||
yield (0, 0, 1) # green
|
yield (0, 0, 1) # green
|
||||||
|
|||||||
Reference in New Issue
Block a user