#####################################
###### IMPORT LIBRARIES
from machine import Pin
from utime import sleep
#####################################
###### PIN CONFIGURATIONS
# Configure the pin as output
# Replace the x with your GPIO Pin X number here
led1_pin = Pin(18, Pin.OUT)
led2_pin = Pin(4, Pin.OUT)
#####################################
###### MAIN ROUTINE
def main():
while True:
# call the led subroutine here
sub_led()
#####################################
###### SUBROUTINE FOR LED
def sub_led():
led1_pin.on()
led2_pin.on()
sleep(0.5)
led1_pin.off()
led2_pin.off()
sleep(0.5)
#####################################
###### EXECUTE MAIN ROUTINE
if __name__ == '__main__':
main()