Led Strip Rainbow Effect Code / Problem

Hi,
i recieved :particle: Photon and i setup it corectly. I did that to to controll my ledstrip but i dont know what code i must write. I searched thru TONS of websites of some codes for rainbow effect (i want to make one) but most of them were for Arduino IDE and i needed to select Adafruit_NeoPixel library witch i couldnt find in the library menu(of the online :particle: IDE) If you got some ideas pllllllease send’em to me. Thanks for attention and see ya soon.

HexaGT Czech republic

@HexaGT, welcome to the community! In the Web IDE, look for the Neopixel library. It comes with a a-rainbow.cpp example that you can use. You will need to make sure to set the parameters for your setup correctly:

// IMPORTANT: Set pixel COUNT, PIN and TYPE
#define PIXEL_PIN D2
#define PIXEL_COUNT 10
#define PIXEL_TYPE WS2812B
2 Likes