 // By Chris Barrett - Polaris Interplanetary - Special Projects Division
 // Supports two modes; All pixel colour fade, and 8 pixel RGB mixer. All modes are asynchronous, and compartmentalized into functions.
 // January 2016 - Shimmer has been overhauled. Cleaner, faster and more productive. NO MORE MID FADE FLICKER! 
-//              - Still needs collision detection.
+//              - Collision detection has been implemented, not sure if it works, will need to check further.
 
 #include <Adafruit_NeoPixel.h>
 #include <avr/power.h>

      shimmer();
  }
  
  //Serial.println(pixupdn[1]);
  pixels.show();                                  // This sends the updated pixel color to the hardware.

  
  

  delay(40);
  
}


int pixpos;                                         // array to store the pixel brightness for each possible pixel
int firstrun = 0;                                   //array to write first run values to pixels
int shimspd[8];                                    //array to set random speed value for shimmer
int pixchck[8];

void setup() {                                      //-----------------------------------------------(Setup)
    pinMode(butpin, INPUT);                         // Set buttonpin as input
