- Sat Mar 07, 2015 8:20 pm
#180289
I need a little nudge in the right direction.
I'm writing a program to flash a brake light for 4 seconds. The flash rate will increase until it goes steady ON. The flash rate sequence is simple and I have it working.
Brakes applied----light flash sequence begins, 4 seconds to steady ON.
Brakes released--light goes OFF
How can I interrupt the sequence within the first 4 seconds and go back to start (OFF) if the brakes are released before the 4 second string ends ?
I'm writing a program to flash a brake light for 4 seconds. The flash rate will increase until it goes steady ON. The flash rate sequence is simple and I have it working.
Brakes applied----light flash sequence begins, 4 seconds to steady ON.
Brakes released--light goes OFF
How can I interrupt the sequence within the first 4 seconds and go back to start (OFF) if the brakes are released before the 4 second string ends ?