 int pin5Value = 0;
 int pin6Value = 0;
 
+int instantPulseCount = 0;
 int pulseCount = 0;
-int pulseSerial = 0;
+int maxPulseCount = 10000; //bogus init value
+int percentFull = 0;
 int currentSecond = 1;
 int previousSecond = 0;
 

//   Serial.println("CurrentSecond: " + String(currentSecond));
  if(currentSecond != previousSecond)
  {
      setPixels(pulseCount);
      pulseCount = 0;
      previousSecond = currentSecond;
  }
  
//   Serial.println(pinName + ":" + String(*pinValue));
}

void setPixels(int pulseCount)
{
    strip.setPixelColor(0, strip.Color(0, 0, 0));
    strip.setPixelColor(1, strip.Color(0, 0, 0));
    strip.setPixelColor(2, strip.Color(0, 0, 0));
    strip.setPixelColor(3, strip.Color(0, 0, 0));
    strip.setPixelColor(4, strip.Color(0, 0, 0));
    Serial.println("PulseCount: " + String(pulseCount));
    if(pulseCount > 0)
    strip.setPixelColor(0, strip.Color(0, 255, 0));
    if(pulseCount > 100)
    strip.setPixelColor(1, strip.Color(0, 255, 0));
    if(pulseCount > 200)
    strip.setPixelColor(2, strip.Color(255, 165, 0));
    if(pulseCount > 300)
    strip.setPixelColor(3, strip.Color(255, 165, 0));
    if(pulseCount > 400)
    strip.setPixelColor(4, strip.Color(255, 0, 0));
    strip.show();
}

/*
TODO
  x Persist data to SVRAM
  * track more than one tap (pin)
  * change LED color over range of full -> empty
  * API endpoints:
    x reset
    x get data
    * set tap name
    * animation (beer) type

