from machine import Pin
import time
# Setup the LED and button (same pins as before, but we only use LED now)
led = Pin(2, Pin.OUT)
while True:
led.value(1) # LED ON
time.sleep(1) # 1 second ON
led.value(0) # LED OFF
time.sleep(1) # 1 second OFF