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

Hello,

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.
thanks

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() {
pixels.begin();
pixels.show();
}

void loop()
{
pixels.setPixelColor(0,150,150,150);
pixels.show();
}

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

[irony]
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.
[/irony]

A schematic is best though.

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

rgb_led.PNG

a0e97a581cf22b2c60dfaf7768cd80fbb93e2950.jpg

422c11a1f9e26297559e9bc91aba176bb260b258.png

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: