This commit is contained in:
Melissa LeBlanc-Williams 2021-04-30 17:09:14 -07:00
parent 153f886ae7
commit efe7ec20fd

View file

@ -23,6 +23,7 @@ def set_outlet_state(value):
global last_pir_timestamp
if value:
funhouse.peripherals.dotstars.fill(0x00FF00)
last_pir_timestamp = time.monotonic()
else:
funhouse.peripherals.dotstars.fill(0xFF0000)
last_pir_timestamp = time.monotonic() - MOTION_TIMEOUT