Gist d6881ff1705f8c86cc3c3b09327ad069
✓ Published0🌍 Public
SServuc
Last edited Nov 20, 2020
Created on Nov 20, 2020
This Arduino sketch demonstrates a color-fading light sequence across three LEDs using the `analogWrite` API with pulse-width modulation values from 0 to 255. The `loop` function cycles through pairwise transitions—red to green, then green to blue, then blue to red—with `lightMe` incrementally raising one channel’s brightness while lowering another over ten steps, pausing via `delay(250)` between adjustments. Each pair ends by setting one LED fully off and the other fully on, revealing a continuous, repeating crossfade effect.
AI-generated description