NeoPixel LED Strip

NeoPixel LED Strip

Liam Brady

LED Strips are individually addressable ribbons of RGB (red green blue) lights, meaning that each light on the ribbon can be controlled by itself and give off any color on the visible color spectrum. Every light on the strip has its own chip onboard that processes commands given to it by the Arduino.

 

NeoPixel Library

#include <Adafruit_NeoPixel.h>

Adafruit_NeoPixel strip = Adafruit_NeoPixel(30, 6, NEO_GRB + NEO_KHZ800);

void setup() {
  strip.begin();
  strip.show();
}

void loop() {
  for (int i = 0; i < strip.numPixels();  i++) {
    strip.setPixelColor(i, strip.Color(255, 0, 0));
  }

  strip.show();

  delay(100);
}