Categories
Classes Projects

Make a Color-Changing Silhouette Light

Blink the “pin 13” LED

import board
import digitalio
import time

led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT

while True:
led.value = True
time.sleep(0.5)
led.value = False
time.sleep(0.5)