snipplets.dev/code/MicroPython/blink.py

10 lines
115 B
Python

import machine
import time
led = machine.Pin(15, machine.Pin.OUT)
led.on()
time.sleep(1)
led.off()
time.sleep(1)