# Traffic Light Project

{% embed url="<https://youtu.be/KQqJwTlI-Ow>" %}

**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.

{% embed url="<https://youtu.be/sE3cCTOcMbY>" %}

**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

{% embed url="<https://youtu.be/m390C0iiK1E>" %}

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

{% embed url="<https://youtu.be/KEh0OMoG_Mw>" %}

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gilmour.online/compsci/archives/vanek-archives/robotics-8/traffic-light-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
