from machine import Pin
import time
ds=Pin(27,Pin.OUT)
latch=Pin(14,Pin.OUT)
shift=Pin(12,Pin.OUT)
# def sl():
# shift.off()
# shift.on()
# latch.off()
# latch.on()
# time.sleep_ms(500)
# latch.off()
# latch.on()
# time.sleep_ms(500)
# for i in range (7):
# ds.value(0)
# shift.off()
# shift.on()
# latch.off()
# latch.on()
# time.sleep_ms(500)
while 1:
ds.value(0)
shift.off()
shift.on()
latch.off()
latch.on()
time.sleep_ms(600)
ds.value(1)
shift.off()
shift.on()
latch.off()
latch.on()
time.sleep_ms(600)