Introduction - If you have any usage issues, please Google them yourself
1. Because of this experiment is the traffic light control experiment, it must first understand the actual changes of traffic lights. Assuming a crossroads for east-west north-south orientation. Initial state 0 for the east-west red lights, red lights north and south. And then switch to state 1, the opening of the North-South green, something red. Over time to state 2, North-South green light flashing orange light will be activated several times to delay a few seconds, things are still red. Then state 3, the opening of something green, red lights north and south. Over time to a state of 4, things turn green light flashing orange light will be activated several times, delay a few seconds, the North and the South is still a red light. The last cycle to a state of 1.