Until now we were always using the leds available in the kit switching them on or off, probably not always what we need, with this experiment we will use the capacity of the microcontroller to “fade” a led and learning the power of the PWM (Pulse Width Modulation) to control a device. The PWM normally is used to manage device like computer fans or other appliances that are not necessary on or off.
int led = 9;
int brightness = 0;
Try to slow down the fading of the LED.
After that you tried the circuit and the code using one led, try to add a second led and after a third one. As tip we suggest to check the experiments that were using more than one led to understand how to modify the code for this homework.
When you are able to use two leds, try to use the RGB led included in the kit to fade all the three colors of the RGB led.