I just got some ws2812. I have one wired up according to the spec sheet I found that was published by world semico. I have just one hooked up to a Mega 2560 and am using the following code:
#include "FastLED.h"
#define NUM_LEDS 1
#define DATA_PIN 6
// Define the array of leds
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds(leds, NUM_LEDS);
}
void loop() {
// Turn the first led red for 1 second
leds[0] = CRGB::Red;
FastLED.show();
delay(1000);
// Set the first led back to black for 1 second
leds[0] = CRGB::Black;
FastLED.show();
delay(1000);
}
Here is an image of my setup. It's pretty basic. ![|500x374](http://i.imgur.com/RczShbM.jpg[/img
I've been mostly just following a few blogs and youtube videos. I have spent a few hours looking up information and cannot seem to get even one LED to light. Any glaring issues or suggestions?">