#include #ifdef __AVR__ #include // Required for 16 MHz Adafruit Trinket #endif #define PIN 2 // Definir pIN de salida #define NUMPIXELS 12 // Cuántos neopixels? Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); #define DELAYVAL 500 // Time (en milisegundos) to pause between pixels void setup() { pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED) } void loop() { pixels.rainbow (0,1,150,100); // Prende de este color, el máximo son 255: pixels.show(); // Muestra el color }