# Define the pin number to which the LED is connected
import machine
import time
led_pin = 2
# You can use any GPIO pin
# Create an LED object
led = machine.Pin(led_pin, machine.Pin.OUT)
# Function to blink the LED
def blink_led():
i=1
while (1):
led.value(1) # Turn the LED on
time.sleep(1) # Delay for 1 second
led.value(0) # Turn the LED off
time.sleep(1) # Delay for 1 second
i+=1
led.value(0)
# Run the blink_led function
blink_led()