import time
from .pulse import pulse
THRESHOLD = 75
RED = (150, 10, 10)
GREEN = (30, 100, 10)
def prox_pulse(px, color, prox):
"""Map the THRESHOLD-255 proximity value to 1000-50 ms pulse
duration and call pulse."""
pass # Delete this line when you start coding!
def run_prox_pulse(apds, pixels):
"""C Tests Demo on Trinkey"""
# Main loop
while True:
print(apds.proximity)
-
Adam Blank authored1e7de354