print("Let's make external LED Blink")
print("21/11/2023")
print("created by ZUNIE")
#import libraries
from machine import Pin
from utime import sleep
#Pin declaration
built_in_LED = Pin(2, Pin.OUT) #(gpio pin no2 to make led blink)
yellow_LED = Pin(12, Pin.OUT)
built_in_LED = Pin(2, Pin.OUT)
red_LED = Pin(13, Pin.OUT)
built_in_LED = Pin(2, Pin.OUT)
green_LED = Pin(14, Pin.OUT)
#Parameter Settings
#Main program
while True:
built_in_LED.on()
red_LED.off()
sleep(0.25)
built_in_LED.off()
red_LED.on()
sleep(0.25)
built_in_LED.on()
green_LED.off()
sleep(0.35)
built_in_LED()
green_LED.on()
sleep(0.35)
built_in_LED.on()
red_LED.off()
sleep(0.45)
built_in_LED.off()
red_LED.on()
sleep(0.45)
built_in_LED.on()
yellow_LED.off()
sleep(0.15)
built_in_LED.off()
yellow_LED.on()
sleep(0.15)