pulse.py 382 Bytes
import time

THRESHOLD = 75
BLUE = (0, 0, 255)
TIME = 1


def pulse(px, color, duration):
    """Fills the pixels with the given color for a duration, then turns them off
    for that duration."""
    pass  # Delete this line when you start coding!


def run_simple_pulse(pixels):
    """D Tests Demo on Trinkey."""
    # Main loop
    while True:
        pulse(pixels, BLUE, TIME)