Professional Documents
Culture Documents
End if
End if
If ThisEvent is ExitingDisarmingState
Turn off the LED strip for fear
Set NextState as LED_OFF
Stop both blink and timekeeping timers
Set rate to 2000 again
End if
End LED_OFF block
CurrentState is LED_ON
If ThisEvent is ES_TIMEOUT
If ThisEvent Parameter is blink timer number
Set Next state as LED_OFF
Turn off the LED strip for fear
Start Blink Timer with parameter rate for LED on/off time which posts to
BlinkingLED
End if
If ThisEvent Parameter is time keeping timer number
Set Next state as LED_OFF
Turn off the LED strip for fear
Set rate = rate/2 to increase blinking speed by double
Start Blink Timer with parameter rate for LED on/off time which posts to
BlinkingLED
Start TimeKeeping timer which expires in 10 sec which posts to
BlinkingLED
End if
End if
If ThisEvent is ExitingDisarmingState
Turn off the LED strip for fear
Set NextState as LED_OFF
Stop both blink and timekeeping timers
Set rate to 2000 again
End if
End LED_ON block
Set CurrentState to NextState
Return ES_NO_EVENT
End of RunBlinkingLED