 
 struct colour_module {
   int r;
+  int g;
   int b;
-  int g;
-  long rgb;
+  //long rgb;
 };
 
 struct colour_module modules[STRIP_LENGTH];
 
-//int pos = -1;
-//int red = 0;
-//int blue = 0;
-//int green = 0;
+#define DECAY_TIME 4 // number of cycles to run before decaying the data.
+int decay_counter = 0; // use to keep track of cycles before doing a decay loop.
 
 #define DEBUG
 

      Serial.print(") P: ");
      Serial.println(pos);    
      #endif

    }
    
  } else {

#define BUFLENGTH 32
char buf[BUFLENGTH]; // character buffer for json processing

int CKI = 2;
int SDI = 3;

#define STRIP_LENGTH 3 // Number of RGBLED modules connected

