Code
The code in the editor below is ready to run! Plug your Code Lab in to your computer's USB port with the cable and hit 'Upload Your Code!' to see what it does. Change something in the code, like a delay or pin number. Try to add something new to the program - it's yours to tinker with! You can always press the 'Restore' button to return the code to the working example.
Video Notes for Code Lab Users:
You will use the single color LEDs on Code Lab in ports 2, 3, and 4 instead of an RGB LED plugged into ports A1, A2, and A3 as the video says.
You will use one color of the RGB LED from port 5 instead of a single color LED on port A4 as the video says.
You will use button 8, 9, 10, and 11 instead of buttons on ports 2, 6, 9, and 12 as the video says.