We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 153f886 commit efe7ec2Copy full SHA for efe7ec2
1 file changed
FunHouse_Motion_Outlet/code.py
@@ -23,6 +23,7 @@ def set_outlet_state(value):
23
global last_pir_timestamp
24
if value:
25
funhouse.peripherals.dotstars.fill(0x00FF00)
26
+ last_pir_timestamp = time.monotonic()
27
else:
28
funhouse.peripherals.dotstars.fill(0xFF0000)
29
last_pir_timestamp = time.monotonic() - MOTION_TIMEOUT
0 commit comments