import time
time.sleep(0.1) # Wait for USB to become ready
import machine
import utime
gp_14 = machine.Pin(14, machine.Pin.OUT)
# ye to load
gp_22 = machine.Pin(22, machine.Pin.OUT)
gp_21 = machine.Pin(21, machine.Pin.OUT)
gp_18 = machine.Pin(18, machine.Pin.OUT)
gp_17 = machine.Pin(17, machine.Pin.OUT)
clock_pin = machine.Pin(10, machine.Pin.OUT)
# for _ in range(num_pulses):
# clock_pin.value(1)
# utime.sleep_ms(500) # Adjust the delay as needed
# clock_pin.value(0)
# utime.sleep_ms(500) # Adjust the delay as needed
# def generate_clock_pulses(num_pulses):
# for _ in range(num_pulses):
# clock_pin.value(1)
# utime.sleep_ms(500) # Adjust the delay as needed
# clock_pin.value(0)
# utime.sleep_ms(500) # Adjust the delay as needed
while True:
clock_pin.value(1)
utime.sleep_ms(500) # Adjust the delay as needed
clock_pin.value(0)
utime.sleep_ms(500) # Adjust the delay as needed
gp_14.value(1) # LOAD
gp_22.value(0)#I0
gp_21.value(0)#I1
gp_18.value(1)#I2
gp_17.value(1)#I3
#generate_clock_pulses(10)
ERC Warnings
flop1:CLK: Clock driven by combinatorial logic
flop2:CLK: Clock driven by combinatorial logic
flop3:CLK: Clock driven by combinatorial logic
flop4:CLK: Clock driven by combinatorial logic