from machine import Pin
from time import sleep_ms
segundo = Pin (23, Pin.OUT)
led = Pin(4, Pin.OUT)

while True:

    segundo.on()
    sleep_ms(1000)
    segundo.off()
    led.on()
    sleep_ms(1000)
    led.off()
    sleep_ms(1000)