The basic component is the delay, shown in fig 1;
as shown it switches something on, then off again four ticks later,
clearly the number of ticks can be altered at whim.
Equally clearly, we can stack up several of these, or else
have a much longer delay with on and off fibres in several places,
as we prefer.
If we feed the last one back into the first, then we have a
repeating cycle.
Most of the Pelican crossing is now routine.
The flashing green man can either be controlled by a delay which
switches the man on and off repeatedly by brute force, or
by switching on, and later off, a flasher unit
[a loop of size two from which you alternately
switch on and off the green man].
The switches themselves follow the model shown in fig 2.
This leaves two problems:
how to keep the lights on green for an arbitrarily long time
[until the button is pressed];
and how to use the button.
The first is easy; the green phase tails off into a switch, also like fig 2, so that once it fires, it keeps firing until switched off. This cell should not keep on starting the next [amber] phase, so the amber phase should have as its top cell one with threshold 2, rather than one, so that it starts only when it also receives another signal [from the input button, essentially]; either this other signal or the top cell of the amber phase should then switch off the green phase and the green light.
The second is now also easy. Have another switch to indicate that the halt button has been fired; that is, the input fibre is a `switch on' fibre for the halt switch. This switch will be tapped off for a switch on for the amber phase; as noted above, this will be ineffective until the green switch also fires. The halt switch should eventually be switched off. If you do this from the end of the steady green man, then pressing the halt button is ignored if you do it while the crossing is already in your favour, but the pressing is stored if you do it at or after the start of the flashing. It is then ignored until the green switch is activated, which is exactly the desired behaviour.
Everything else is now routine. One thing to watch out for: make sure that the start of the amber phase kills everything else in sight, otherwise it is easy to get the amber phase started twice on successive ticks, which is not good [though it doesn't really matter if things get switched on and off twice except for the flasher unit]. Real Pelican crossings [and other traffic lights, etc.] are more like this than you might suppose!