 #define PIXEL_TYPE WS2812B
 
 Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE);
+
+// math values
+float pi = 3.14;
 
 // eyeball values
 int powerPin=D7;

  rbase=0;
  gbase=255;
  bbase=255;
  int b = getBrightness();

  int red=b*rbase/100;
  int grn=b*gbase/100;
  int blu=b*bbase/100;
  colorAll(strip.Color(b*red, b*grn, b*blu), 0);

  Serial.print(red);
  Serial.print("    ");
  Serial.print(grn);
  Serial.print("    ");
  Serial.print(blu);
  Serial.print("    ");
  Serial.println(b);

  delay(50);

}

int smooth(int current, int last, int lastavg, int t) {
  // smooths out a variable by averaging this value over time t
  // take modulo of millis with t
  // if modulo not equal to 0 then can just add this value to the previous value and divide by 2
  // also will keep a lastavg value so that can smooth between averages a bit.
  // every interval t, we will reset lastavg and return avg
  // every noninterval, we will return avg and average last.
}

float getBrightness() {
  // calibrates the brightness of the strip based on the incoming light

int lightmin = 0; // value of complete darkness
int lightmax = 300; // value of ambiently bright light

// brightness smoothing values, defined to start but subject to change
int b = 90;
int b0 = 90;
int period = 6000;

// timing values
int sunrise = 429;
int sunriseprebuffermin = 5;
