RGB LED Experiments
After completing the RGB LED project, test yourself by trying these experiments.
1 | Modify the code to show the three primary colors, red, green and blue, in sequence. | |
2 | What color do you see when you set both red and green to 255?
What color do you see when you set both red and green to 125? What value do you need to have to get the white color? What value do you need to have to get the black color? | |
3 | Write the code to fade in the blue color, i.e. start from black and then slowly bring the blue in until full bright. Hint: use the | |
4 | Write the code to fade in the green color, and then fade out. Hint: use two | |
5 | Experiment and create your own color show. | |