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();

    

    }

Igniting Innovation through Functional Prototyping and Physical Computing

Contact Information

odysseyboardedu.@gmail.com
Phone: (360) 303-5526
24338 Lee Road
Mount Vernon, WA 98274

Contact Us

Thanks for submitting!

© 2017 by Odyssey Board. All rights reserved.

bottom of page