print('Program: to make built-in LED blinking')
print('by Raziq')
print('20/11/2023')

#Import all necessary libraries
from utime import sleep
from machine import Pin

#Pin declaration
led_biru = Pin(2, Pin.OUT) #Pin(Pin number, )
led_hijau = Pin(13, Pin.OUT)
led_merah = Pin(25, Pin.OUT)
led_purple = Pin(5, Pin.OUT)
led_cyan = Pin(15, Pin.OUT)

#Parameter declaration
counter = 1

#Main Program
while True: 
  led_biru.on()
  led_hijau.on()
  sleep(1)
  led_merah.on()
  sleep(2)
  led_purple.on()
  sleep(3)
  led_cyan.on()
  sleep(4)
  led_biru.off()
  led_hijau.off()
  sleep(1)
  led_merah.off()
  sleep(2)
  led_purple.off()
  sleep(3)
  led_cyan.off()
  sleep(4)
  print('Blink ', counter)
  counter =  counter+1