Traffic Lights

{% trans 'Sorry, your browser does not support canvas -- please either update your browser or submit your requirements by phone or email.' %}

Accelerometer

Avatar for Jim Evans Jim Evans

Using 3 LEDs to create a simple traffic light. Connect the positive lead of a red LED to PWR and the negative lead to leg 0. Connect the positive lead of a yellow LED to PWR and the negative to leg 2. Connect the positive lead of a green LED to PWR and the negative to leg 3. Download the code to your codebug, and press button B to start the lights.

Report this project
Back to top