changed 2 years ago
Linked with GitHub

Addressable led strip

An LED strip light (also known as an LED tape or ribbon light) is a flexible circuit board populated by surface mounted light-emitting diodes (SMD LEDs) and other components that usually comes with an adhesive backing.

Install the Adafruit Neopixel library:

To test your led strip just load the example called strandtest in the Examples → Adafruit Neopixel menu.

This simple example can help you get started

#include <Adafruit_NeoPixel.h>

#define PIN 3
#define NUMPIXELS 12
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  pixels.begin();
}

void loop() {
  pixels.clear();
  for(int i=0; i<NUMPIXELS; i++) { // For each pixel...

    pixels.setPixelColor(i, pixels.Color(0, 150, 0));
    pixels.show();
    delay(200);
  }
}

References
Adafruit Neopixel Library repository
Adafruit Neopixel Library reference
Adafruit neopixel Uberguide
Sparkfun addressable led guide

Select a repo