LWC Coding Challenge Snippet #2

PHOTO EMBED

Thu Aug 29 2024 20:01:12 GMT+0000 (Coordinated Universal Time)

Saved by @TechBox #c++

// Use the ColorFromPalette function to rotate through the rainbow by the colorIndex
//ColorFromPalette( paletteName, colorIndex[0-255], brightness[0-255], blendType[NOBLEND or LINEARBLEND])
leds[j] = ColorFromPalette(RainbowColors_p, colorIndex, 255, LINEARBLEND);
colorIndex += 15;  // Increment the colorIndex to change the color for the next LED
content_copyCOPY