Make it FADE (PWM)
// WHAT YOU WILL LEARN
analogWrite(pin, 0–255) on a ~ pin switches very fast (PWM); a for loop raises brightness step by step.
// LESSON NOTES
Part 5: make your LED FADE 🌗 The secret? It's still just ON/OFF — 490 times a second. (And no, pin 13 won't work 👀)
Related lessons
// NEWSLETTER · FREE
Get new lessons + early access to the full course
One email when new lessons drop. No spam, unsubscribe any time.
✓ You're on the list. Check your inbox to confirm.
By joining you agree to the privacy policy.




