print("Program : To make External LED Blinking")
print("by MZRBMZ")
print("Date: 20/11/2023")


from machine import Pin
import time

# pin declaration
led_Biru = Pin(2, Pin.OUT)
led_Biru_laut = Pin(14, Pin.OUT)
led_merah = Pin(27, Pin.OUT)
led_purple = Pin(26, Pin.OUT)

#parameter declaration
counter = 1

# Main program
def christmas_blink():
    led_Biru.on()
    time.sleep(1)
    led_Biru_laut.on()
    time.sleep(1)
    led_merah.on()
    time.sleep(1)
    led_purple.on()
    time.sleep(1)
    led_Biru.off()
    time.sleep(1)
    led_Biru_laut.off()
    time.sleep(1)
    led_merah.off()
    time.sleep(1)
    led_purple.off()
    time.sleep(1)



while True:
    christmas_blink()
    time.sleep(1)  
    print("Blink", counter)
    counter += 1