Supplemental Lessons (Day 2)
Make sure to do the regular day 2 lesson first. Here is a link if you need to find it.
https://www.rcccamp.org/day-2-tuesday-servos.html
https://www.rcccamp.org/day-2-tuesday-servos.html
Now that you have gotten the code to work, try adding the other colors to digitalWrites to get the colors to switch.
You add this to the loop just like you added delays and more digitalWrites to your blink code. Once you get it to work, change the values in the set color part to numbers between 0-255 and see what happens. |