import machine
import utime
pin = [6,7,8,9,10,11,12,13]
led= []
for i in range(8):
led.append(None)
led[i] = machine.Pin(pin[i], machine.Pin.OUT)
while True:
for i in range(8):
led[i].toggle()
utime.sleep(0.5)
#SunFounder Kepler kit 2.2 Display the Level
No comments:
Post a Comment