Question: I need the code for this please, Design a traffic light controller assuming that PORTB, digital pin #8 to #13, are driving green, yellow, red,
I need the code for this please,
Design a traffic light controller assuming that PORTB, digital pin #8 to #13, are driving green, yellow, red, green, yellow, and red LEDs, respectively. Assign pin #8 to #10 to drive east-west and pin #11 to pin #13 to drive north-south direction lights. The traffic light patterns and durations for traffic heading east-west and north-south directions are given in Table 1.

Green Duration(sec) Table 1. Traffic light patterns and durations East-West North-South Yellow Red Green Yellow Red 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 20 Green Duration(sec) Table 1. Traffic light patterns and durations East-West North-South Yellow Red Green Yellow Red 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
