Hi, I am very new to Arduino and programming in general. I have the Arduino Uno and an Adafruit NeoPixel Digital RGB LED Strip (Adafruit NeoPixel Digital RGB LED Strip - White 60 LED [WHITE] : ID 1138 : $99.80 : Adafruit Industries, Unique & fun DIY electronics and kits). I'm trying to write a program to simply turn on the entire strip of lights. I tried following the uberguide on the Adafruit site but I must have messed up because when I upload my code the LED strip either turns off or stays off.
Here is my code:
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
#define PIN 6
#define NUMPIXELS 12
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.show(); //Initialize all pixels to 'off'(no color set)- not necessary, just thorough
}
void loop() {
strip.begin();
strip.setPixelColor(12, 255, 0, 255);
strip.show();
}
If anyone can help me out I'd really appreciate it!