   // percentFull = EEPROM.read(EEPROM_ADDR_PERCENT_FULL);
 
   //https://api.particle.io/v1/devices/<device_id>/<variable_name>?access_token=<access_token>
-  Particle.variable("maxPCntT0", &maxPulseCountT0, INT);
-  Particle.variable("instPCntT0", &instantPulseCountT0, INT);
-  Particle.variable("pulseCntT0", &pulseCountT0, INT);
-  Particle.variable("perFullT0", &percentFullT0, INT);
-
-  Particle.variable("maxPCntT1", &maxPulseCountT1, INT);
-  Particle.variable("instPCntT1", &instantPulseCountT1, INT);
-  Particle.variable("pulseCntT1", &pulseCountT1, INT);
-  Particle.variable("perFullT1", &percentFullT1, INT);
+  Particle.variable("maxPCntT0", &T0.maxPulseCount, INT);
+  Particle.variable("instPCntT0", &T0.instantPulseCount, INT);
+  Particle.variable("pulseCntT0", &T0.pulseCount, INT);
+  Particle.variable("perFullT0", &T0.percentFull, INT);
+
+  // Particle.variable("maxPCntT1", &maxPulseCountT1, INT);
+  // Particle.variable("instPCntT1", &instantPulseCountT1, INT);
+  // Particle.variable("pulseCntT1", &pulseCountT1, INT);
+  // Particle.variable("perFullT1", &percentFullT1, INT);
 
   // Particle.variable("maxPCntT2", &maxPulseCountT2, INT);
   // Particle.variable("instPCntT2", &instantPulseCountT2, INT);

  stripT2.show();

  //pin modes
  pinMode(flowTapPin0, INPUT_PULLDOWN);
  pinMode(flowTapPin1, INPUT_PULLDOWN);
  pinMode(flowTapPin2, INPUT_PULLDOWN);
  
  pinMode(ledPin, OUTPUT);
  

// #include "neopixel/neopixel.h"
#include "neopixel.h"

#define EEPROM_ADDR_T0 0
#define EEPROM_ADDR_T1 20
#define EEPROM_ADDR_T2 40

#define PIXEL_TYPE WS2812B
#define PIXEL_COUNT 14

struct TapObject
{
  int pulseCount;
  int maxPulseCount;
  int instantPulseCount;
  int previousPulseCount;
  int flowing;
  int percentFull;
  int currentSecond;
  int previousSecond;
  int animationStep;
  int flowPin;
  int ledPin;
};

//initialize taps
TapObject T0 = {1000, 1000, 0, 0, 0, 100, 1, 0, 0, D6, D3};
TapObject T1 = {1000, 1000, 0, 0, 0, 100, 1, 0, 0, D5, D2};
TapObject T2 = {1000, 1000, 0, 0, 0, 100, 1, 0, 0, D4, D1};

int ledPin = D7;

Adafruit_NeoPixel stripT0 = Adafruit_NeoPixel(PIXEL_COUNT, T0.ledPin, PIXEL_TYPE);
Adafruit_NeoPixel stripT1 = Adafruit_NeoPixel(PIXEL_COUNT, T1.ledPin, PIXEL_TYPE);
Adafruit_NeoPixel stripT2 = Adafruit_NeoPixel(PIXEL_COUNT, T2.ledPin, PIXEL_TYPE);

int flowTapPin0Value = 0;
int flowTapPin1Value = 0;
int flowTapPin2Value = 0; 

String *strArr = new String[20];

int handlePost(String command);

