from machine import Pin
from time import sleep as s
VdC = Pin(15, Pin.OUT)
AC = Pin(2, Pin.OUT)
VmC = Pin(0, Pin.OUT)
VdP = Pin(4, Pin.OUT)
VmP = Pin(16, Pin.OUT)
todos = [VdC, AC, VmC, VdP, VmP]
def apagar():
for i in range(0, len(todos)):
print(todos[i])
todos[i].off()
def pisca(sem):
for i in range(0, 3):
sem.on()
print(sem)
s(0.5)
sem.off()
print(sem)
s(0.5)
while True:
apagar()
VmC.on()
VdP.on()
s(3)
VdP.off()
pisca(VmP)
VmC.off()
VdC.on()
VmP.on()
s(6)
VdC.off()
AC.on()
s(3)