from machine import Pin
from utime import sleep
p18 = Pin(18, Pin.OUT)
p5 = Pin(5, Pin.OUT)
d = 0.1
while True:
#prva ledica
p18.value(1)
sleep(d)
p18.value(0)
sleep(d)
#druga ledica
p5.value(1)
sleep(d)
p5.value(0)
sleep(d)
# naj LEDice izmenično utripajo.