from machine import Pin
import time
pins = [12, 13, 14]
colors = [(1, 0, 0),
(0, 0, 0),
(1, 1, 0),
(0, 0, 0),
(0, 1, 0),
(0, 0, 0)]
for pin_num in pins:
pin = Pin(pin_num, Pin.OUT)
while True:
for i in range(6):
for j in range(3):
pin = Pin(pins[j], Pin.OUT)
pin.value(colors[i][j])
time.sleep(1)