from machine import Pin
from time import sleep_ms
vPVermelho = Pin(23, Pin.OUT, value=0)
vPAmarelo = Pin(22, Pin.OUT, value=0)
vPVerde = Pin(21, Pin.OUT, value=0)
while True:
# Pare
vPVermelho.on()
sleep_ms(5000)
# Siga
vPVermelho.off()
vPVerde.on()
sleep_ms(10000)
# Atenção
vPAmarelo.on()
vPVerde.off()
sleep_ms(3000)
vPAmarelo.off()