01
Overview
The traffic light module is equipped with red, yellow, and green LED lights, controlled by the R, Y, and G pins to turn the corresponding lights on and off.

02
Wiring
- Supply Voltage: 3.3V / 5V
- GND: GND, negative terminal
- GR: Control green light
- YE: Control yellow light
- RE: Control red light

03
Programming
Program Explanation:
First, initialize the three pins corresponding to the red, yellow, and green lights, setting them as digital outputs; then loop to set the levels of the three pins to high, lighting each lamp for one second.


04
Effect
Students who need accessories can purchase them from my Taobao store under the same name.
Follow me for more shares|Weilan Classroom
