Traffic Light (State Machine)
The cyclic states of a traffic light.
What this template contains
- Source
- 8 lines
Make it your own.
title "Traffic light"
state Red
state Green
state Amber
initial Red
transition Red -> Green on "timer"
transition Green -> Amber on "timer"
transition Amber -> Red on "timer"