from machine import Pin
from utime import sleep
import neopixel

leds = neopixel.NeoPixel(Pin(18), 16)

leds[0] = (255, 0, 0)
leds.write()


print("Hello, ESP32!")
pList = [5,15]
pins = []
for p in pList:
  pins.append(Pin(p, Pin.OUT))

def setPin(b = 1):
  for p in pins:
    p.value(b)

    
#prižgi obe naenkrat
while True:
  for p in pins:
    setPin()
    #p.on()
    sleep(0.5)
    setPin(0)
    #p.off()
    sleep(0.5)

# simuliraj semafor 
$abcdeabcde151015202530354045505560fghijfghij