import time
import machine
from machine import Pin, Timer
time.sleep(0.1) # Wait for USB to become ready

led1 = Pin(1, Pin.OUT)
led2 = Pin(5, Pin.OUT)
num1 = int(input("Enter first integer:"))
num2 = int(input("Enter second integer:"))
num=num1+num2
b = bin(num)
print(b)

n=len(b)
i=2
while(i<n):
    timer = Timer()
    if b[i]=="1":
        led1.on()
        time.sleep(0.5)
        led1.off()
        time.sleep(0.5)
    else:
        led2.on()
        time.sleep(0.5)
        led2.off()
        time.sleep(0.5)
    i=i+1

   
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT