 char bChar[4] = "125";
 char pattern[2] = "2";
 char mode[2] = "1";
-char very_active[5] = "5";
-char sendentary[5] = "20";
-char fairly_active[5] = "10";
-char lightly_active[5] = "25";
-char sleep_time[5] = "40";
+char *very_active = "5";
+char *sendentary = "20";
+char *fairly_active = "10";
+char *lightly_active = "25";
+char *sleep_time = "40";
 int r = 0;
 int g = 0;
 int b = 255;
 Adafruit_NeoPixel strip = Adafruit_NeoPixel(102, 6, NEO_GRB + NEO_KHZ800);
 
 void setup() {
+//  Serial.begin(9600);  // initialize serial communication
+//  while(!Serial);      // do nothing until the serial monitor is opened
+//  Serial.println("Starting bridge...\n");
+
   Bridge.begin();  // make contact with the linux processor
-  Serial.begin(9600);
-  while(!Serial);
-  Serial.print("sketch started");
   initLeds();
-  
-  
 }
 
 void initLeds(){

  r = atoi(rChar);
  g = atoi(gChar);
  b = atoi(bChar);
  r = 255;
  g = 0;
  b = 0;
 if(atoi(mode) == 1) activities();
 else setColorAndPattern(r, g, b, atoi(pattern));
  
 Serial.println(r);
 Serial.println(g);
 Serial.println(b);
 
  
}

void setColorAndPattern(int r, int g, int b, int pattern){

#include <HttpClient.h>
#include <math.h>

#define TIMECTL_MAXTICKS  4294967295L
#define TIMECTL_INIT      0
long time;
unsigned long flashTimeMark=0;
unsigned long flashTimeMark2=0;
long interval = 2000; 
long previousMillis = 0;
int alpha;
