'''4 bit binary counting LEDs'''
from machine import Pin
from utime import sleep

PORT =[3, 2, 1, 0] 
DIR ["0","0","0","0"]
L = [0]*4

def Configure_Port():

 for i in range(0, 4):
 if DIR[i]=="0":


L[i]= Pin(PORT[i], Pin.OUT)

else:



L[i]= Pin(PORT[i], Pin.IN)

 return

def Port Output(x):



b = bin(x)

 b = b.replace("0b", " ")
diff =4-len(b) 
for i in range (0, diff):





for i in range (0, 4):

if b[i]=="1":


b = "0" + b
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT