You need to sign in or sign up before continuing.
interact.py 301 Bytes
import colorsys
import time

from abstract import *

RED: tuple[int, int, int] = (255, 0, 0)
GREEN: tuple[int, int, int] = (0, 255, 0)
YELLOW: tuple[int, int, int] = (255, 255, 0)


def run(apds: ProximitySensor, pixels: LEDController, touch: TouchSensor):
    while True:
        pixels.fill(YELLOW)