from utime import sleep
from machine import Pin
sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
'''
d0 = Pin(0, Pin.OUT)
d1 = Pin(26, Pin.OUT)
d2 = Pin(27, Pin.OUT)
d3 = Pin(28, Pin.OUT)
digits = (d0, d1, d2, d3)
'''
pins = (0, 26, 27, 28)
digits = [Pin(p, Pin.OUT) for p in pins]
while True:
for x in digits:
for y in range(2):
x.toggle()
sleep(0.1)