Hey, this program looks great!
I'm trying to implement a resetabe timer event. Here's the situation: In my
office, I've got two motions sensors that broadcast on A1 and A3 (It's a
wacky shaped room). I've got a floor lamp on B1. I want the lamp to turn on
whenever either of the motion sensors fire, and turn off fif* minutes
after the last turn-on event.
Something like the following pseudo-code:
upon A1_ON, set LampTimer=15 and B1_ON.
upon A3_ON, set LampTimer=15 and B1_ON.
Upon LampTimer expires, B1_OFF.
I can't quite figure out how to do this...