Traffic Light Project

The first part of the assignment needs

  • Correctly wired traffic lights as outlined in the video

  • variables for each light

  • Setup pin modes for each light

  • Create a pattern as outlined in the video

  • Once it runs correctly, create a student defined function called normalTraffic to run the pattern.

The second part of the assignment needs

  • A second student defined function with flashing red lights

  • A third student defined function with one flashing red and one flashing yellow light

  • A fourth student defined function with the opposite flashing red and yellow lights

For the third part of the project, add a button that controls the 4 modes.

For the fourth part of the assignment, change the button to an interrupt and add text as described in the video.

Last updated