Dhl 50 Stuks WS2812B Module Strip 24 Bits 24 X WS2812 5050 Rgb Led Ring Lamp Licht Met Geïntegreerde Drivers rgb 24 Voor Arduino
Sample code
// NeoPixel Ring simple sketch (c) 2013 Shae Erisson
// released under the GPLv3 license to match the rest of the AdaFruit NeoPixel library#include#include// Which pin on the Arduino is connected to the NeoPixels?// On a Trinket or Gemma we suggest changing this to 1#define PIN 6// How many NeoPixels are attached to the Arduino?#define NUMPIXELS 24// When we setup the NeoPixel library, we tell it how many pixels, and which pin to use to send signals.// Note that for older NeoPixel strips you might need to change the third parameter--see the strandtest// example for more information on possible values.Adafruit_ NeoPixel pixels = Adafruit_ NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);int delayval = 500; // delay for half a secondvoid setup() {// This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket#if defined (__AVR_ATtiny85__)if (F_CPU == 16000000) clock_ prescale_ set(clock_div_1);#endif// End of trinket special codepixels. begin(); // This initializes the NeoPixel library.}void loop() {// For a set of NeoPixels the first NeoPixel is 0, second is 1, all the way up to the count of pixels minus one.for(int i=0;i// pixels. Color takes RGB values, from 0,0,0 up to 255,255,255pixels. setPixelColor(i, pixels.Color(0,150,0)); // Moderately bright green color.pixels. show(); // This sends the updated pixel color to the hardware.delay(delayval); // Delay for a period of time (in milliseconds).
Bundle : bundel 2
gewicht : Pcs
Certificering : CE
Merknaam : CKINNFON
Afmetingen (Bxhxd)) : Look at the description
Oorsprong : Cn (Oorsprong)
Modelnummer : 24 bit ws2812 5050 RGB LED
Compatibel Audio & Video Apparatuur Stijl : picture display
Pakket : Ja