SIK Inventors Kit Challenge Circuit1D - RGB Night-Light

Hello,

I am having trouble with one of the challenges in the Inventors Kit exercises. The prompt is “Fading the LED: Try using a loop with the analogWrite() to get your LED to pulse gently or smoothly transition between colors”

This one has me stumped. Can anyone provide further info or perhaps a sample code of what that would look like?

I’ve attached a screenshot of the prompt if that helps.

Any help is appreciated, looking forward to learning as much as I can. Thank you.

Try putting a value in the parentheses using analogWrite() and use that to change the brightness of a pin/color…scroll up a bit from where you screenshot to see a description of analogWrite()

Thanks! I’ll give it a try. :slight_smile: