Brooke's LED Fade
Our first assignment was to make a LED fade in and out. This assignment demonstrates the use of analogWrite(). Analogwrite() uses pulse width modulation (PWM) to make the fading effect. The result of the project was a wave of text growing and shrinking the LED brightness.
First, I wired up my circuit using a 220Ω resistor and made the LED blink. Then went to trying to make the LED fade in and out, rather then blink. I then used analogWrite() to make the fading effect.
Problems and Solutions:
One problem I had was using analogWrite in the code to make the fade. I then solved my problem by researching about analogWrite and how to use correctly in a code. After doing my researching about analogWrite i correctly used it in the code to make the LED fade in and out.