circuitpython/ports/nrf/boards/feather52/examples/blinky.py

13 lines
223 B
Python
Raw Normal View History

import board
import digitalio
import time
led = digitalio.DigitalInOut(board.LED2)
led.direction = digitalio.Direction.OUTPUT
while True:
led.value = True
time.sleep(0.5)
led.value = False
time.sleep(0.5)