from machine import Pin
from utime import sleep
red = Pin(1, Pin.OUT)
yellow = Pin(5, Pin.OUT)
green = Pin(9, Pin.OUT)
def blink(led, Z):
for _ in range(Z):
led.toggle()
sleep(0.5)
led.toggle()
sleep(0.5)
N = 0
P = 0
p = 1
while True:
N = p + P
blink(red,N)
p = P
P = N
N = p + P
blink(yellow,N)
p = P
P = N
N = p + P
blink(green,N)
p = P
P = N
# Red = Positive
# Black = negative