print("Let's make external LED Blink!")
print("Date: 21/11/2023")
print("Created by m4trep")
#Import Libraries
from machine import Pin
from utime import sleep
#Pin declaration
built_in_LED = Pin(2,Pin.OUT) #(GPIO pin no, IN or OUT)
LED_hijau = Pin(13,Pin.OUT)
LED_biru = Pin(12,Pin.OUT)
LED_merah = Pin(14,Pin.OUT)
buzzer=Pin(18,Pin.OUT)
#Parameter setting
#Main Program
while True:
built_in_LED.on()
sleep(0.1)
LED_biru.on()
sleep(0.2)
LED_hijau.on()
sleep(0.3)
LED_merah.on()
sleep(0.4)
built_in_LED.off()
sleep(0.1)
LED_biru.off()
sleep(0.2)
LED_hijau.off()
sleep(0.3)
LED_merah.off()
sleep(0.4)