   }
   strip.show();
 }
+
+
+// t: current time, b: beginning value, c: change in value, d: duration
+float linearTween (float t, float b, float c, float d) {
+  return c*t/d + b;
+}
+
+float easeInOutSine (float t, float b, float c, float d) {
+  return -c/2 * (cos(M_PI*t/d) - 1) + b;
+}
+
+float easeInBounce (float t, float b, float c, float d) {
+  return c - easeOutBounce (d-t, 0, c, d) + b;
+}
+
+float easeOutBounce (float t, float b, float c, float d) {
+  if ((t/=d) < (1/2.75)) {
+    return c*(7.5625*t*t) + b;
+  } else if (t < (2/2.75)) {
+    return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
+  } else if (t < (2.5/2.75)) {
+    return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
+  } else {
+    return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
+  }
+}
+
+float easeInOutBounce (float t, float b, float c, float d) {
+  if (t < d/2){
+    return easeInBounce (t*2, 0, c, d) * .5 + b;
+  }
+  return easeOutBounce (t*2-d, 0, c, d) * .5 + c*.5 + b;
+}

#include <Adafruit_NeoPixel.h>
#include <Bridge.h>
#include <HttpClient.h>

/* NEO_RGB     Pixels are wired for RGB bitstream
 NEO_GRB     Pixels are wired for GRB bitstream

int alpha;
int periode = 2000;
int totalStrips = TOTAL_STRIPS;
char rChar[4] = "125";
char gChar[4] = "125";
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";
int r = 0;
int g = 0;
int b = 255;
