top of page

Single Color LED Strip
//LED Strip One Color
#include <FastLED.h>
#define NUM_LEDS 7
#define DATA_PIN 3
CRGB leds[NUM_LEDS];
void setup() {
delay(2000);
FastLED.addLeds<WS2811, DATA_PIN, GRB>(leds, NUM_LEDS);
Serial.begin(9600);
}
void loop() {
int numLedsToLight = 7;
FastLED.clear(); // Clears the existing led values
for(int led = 0; led < numLedsToLight; led++) {
leds[led] = CRGB::Teal; //Set the CRGB color to any X11 Color Names
}
FastLED.show();
}
bottom of page