In this tutorial you'll create a simple circuit that can change the color of a light using a button. Below you'll find a diagram and link to the code.
Set up
When you setup the Arduino it's very important that all the wires go into the same spots as shown below. Remember that LEDs have a long side and a short side. For this LED the longest wire should go to ground.
In this project we're using a new type of led. In the past a LED was one color, but now this LED can show three colors. Each wire (except the longest) turns on a different color.
With this new LED use the code below to program your arduino! Simply copy this file into your Arduino editor and upload it!
Stretch Goals: