Whats the next assignment, the bottle counter or the elevator? I forgot.
Is this an urban, or a rural traffic light? The urban traffic lights show red in both directions for about 10 seconds, and the rural traffic lights count more on drivers that can tell the differance between red and green.
Anyway post a try (do some code), and we'll help you from there.
Mike.