from gpiozero import TrafficLights, Button
lights = TrafficLights(21, 20, 16)
button = Button(5)
lights.on()
lights.off()
lights.red.on()
lights.amber.on()
lights.green.off()
lights.value = (1, 1, 0)
def my_func():
print("Don't push the button!")
button.when_pressed = my_func
from your nearest web-server
gpiozero.readthedocs.orgQuestions? Pub!