   static uint8_t circlex = 0;
   static uint8_t circley = 0;
 
+
+  rgb24 *buffer = matrix.backBuffer();  
+  
   static uint8_t ihue=0;
   fillnoise8();
   for(int i = 0; i < kMatrixWidth; i++) {

#include<SmartMatrix.h>
#include<FastLED.h>

#define kMatrixWidth  32
#define kMatrixHeight 32
const bool    kMatrixSerpentineLayout = false;

#define NUM_LEDS (kMatrixWidth * kMatrixHeight)

CRGB leds[kMatrixWidth * kMatrixHeight];


uint16_t XY( uint8_t x, uint8_t y)
{
  uint16_t i;

  if( kMatrixSerpentineLayout == false) {
    i = (y * kMatrixWidth) + x;
  }

  if( kMatrixSerpentineLayout == true) {
    if( y & 0x01) {
      // Odd rows run backwards
      uint8_t reverseX = (kMatrixWidth - 1) - x;
      i = (y * kMatrixWidth) + reverseX;
    } else {
      // Even rows run forwards
      i = (y * kMatrixWidth) + x;
    }
  }

  return i;
}

// The 32bit version of our coordinates
static uint16_t x;

  // Serial.begin(38400);
  // Serial.println("resetting!");
  delay(3000);

  matrix.begin();

  matrix.setBackgroundBrightness(96);

  // Initialize our coordinates to some random values
  x = random16();
