//this sketch sequentially lights up an array of NeoPixels with randomly generated colours #include // Which pin on the Arduino is connected to the NeoPixels? #define PIN D0 // On Trinket or Gemma, suggest changing this to 1 // How many NeoPixels are attached to the Arduino? #define NUMPIXELS 16 // Popular NeoPixel ring size // When setting up 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(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); #define DELAYVAL 500 // Time (in milliseconds) to pause between pixels void setup() { // put your setup code here, to run once: pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED) } void loop() { // put your main code here, to run repeatedly: pixels.clear(); // Set all pixel colors to 'off' for(int i=0; i