import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from machine import Pin,ADC
led=(Pin(6,Pin.OUT),Pin(7,Pin.OUT),Pin(8,Pin.OUT),
Pin(9,Pin.OUT),Pin(10,Pin.OUT),Pin(11,Pin.OUT))
pot=ADC(Pin(28))
table=((0,0,0,0,0,0),(1,0,0,0,0,0),(1,1,0,0,0,0),
(1,1,1,0,0,0),(1,1,1,1,0,0),(1,1,1,1,1,0),
(1,1,1,1,1,1))
while True:
val=int(pot.read_u16()/65535*6)
print(val)
for i in range(6): #led count
led[i].value(not table[val][i])
time.sleep(0.02)