And i don`t know if they are common anode or cathode.
I have some 560ohms resistors. I wired them to the arduino and uploaded this sketch rgb led but it doesn`t work. I connected the longest pin from the led even to the +5 and nothing happened. So i connected it to the GND.
The code says that i will see 5-6 colors. But my leds are all blinking BLUE. The other colors do not work. I think, after wiring the longest pin to GND and blue came up, these leds are COMMON CATHODE. The sketch from adafruit is made for common cathode, like mines. But why the other colos do not work?
This is my setup:
let`s say the pins (like in picture) have a number from left to right: 1(R) 2(G) 3(GND) 4(B)
1 is wired to PIN 9 via a 560ohms resistor //blue
2 is wired to PIN 10 via a 560ohms resistor //green
3 is wired to GND
4 is wired to PIN 11 via a 560ohms resistor //red
Wiring it like this only the color BLUE shows up every 1 second.
I'm confused - you say it's a neopixel, but you also say you got it to turn on blue while trying to control it like a normal RGB led.
That won't happen if it's a neopixel (also, if it's a neopixel, and you accidentally connected power backwards, it may well be ruined - the WS2811 is notorious for dying instantly if hooked up backwards) - unless you sent it the right code, it wouldn't do anything.