from machine import Pin
from time import sleep
#cathode einstellen anstatt anode
sleep(0.1) #wait for usb to become
#kontrolle
print("Hello, Pi Pico!")
#setup
A = Pin(3, Pin.OUT)
B = Pin(28, Pin.OUT)
C = Pin(22, Pin.OUT)
D = Pin(26, Pin.OUT)
E = Pin(27, Pin.OUT)
F = Pin(20, Pin.OUT)
G = Pin(21, Pin.OUT)
def zeroOn():
A.on()
B.on()
C.on()
D.on()
E.on()
F.on()
def zeroOff():
A.off()
B.off()
C.off()
D.off()
E.off()
F.off()
def oneOn():
B.on()
C.on()
def oneOff():
B.off()
C.off()
def twoOn():
A.on()
B.on()
G.on()
E.on()
D.on()
def twoOff():
A.off()
B.off()
G.off()
E.off()
D.off()
def treeOn():
A.on()
B.on()
C.on()
D.on()
G.on()
def treeOff():
A.off()
B.off()
C.off()
D.off()
G.off()
while True:
zeroOn()
sleep(0.2)
zeroOff()
sleep(1)
oneOn()
sleep(0.2)
oneOff()
sleep(1)
twoOn()
sleep(0.2)
twoOff()
sleep(1)
treeOn()
sleep(0.2)
treeOff()
sleep(1)