Traffic light code
CIRCUIT DIAGRAM
 Traffic light System:
Instead of having a delay of 5 seconds in the code we could replace the code for the 7 segment display to print the numbers from 0 to 5 .In order to reduce the code complexity we just depicted the code below to display numbers from 0 to 5 which could be inserted in between.
CLICK BELOW LINK TO TRY THIS IN TINKER CAD