Neopixel RGB LED 8mm - how to enable this LED?


I am really new in Arduino world and has some trouble with this LED - Neopixel RGB LED 8mm.
I was really trying to do it myself, but after few hours I feel stuck.
I just want to turn it on and play with colors.

What I did is that I connected this LED to Arduino Uno (see attachment) and send few lines of code to Arduino. Result is that LED is doing nothing :confused: (there is only a one tiny green flash, when I restarted it)

If you can see, where I am doing some basic mistake, let me know.

Here is the code, I am using:

#include <Adafruit_NeoPixel.h>
#define PIN 12
#define NUMPIXELS 1

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

void setup() {

void loop()

When you post code you post it like it tells you here How to use this forum

When photographing a layout can you try harder to let the shadows obscure some more of the wiring, I could nearly make out some of it. The focus too was nearly sharp enough to be able to actually see it, so make it softer so that it is totally useless.

A schematic is best though.

ok, hope this is better.
Flat side of the LED is on the right.




Well from the photograph I would say you have the led round the wrong way. The flat side is next to the data out, you appear to have this reversed.

Solved, LED diod was broken, I bought a new one and with the same setup, it works :slight_smile: