 #define STAT_ENDED 2
 #define STAT_DELAY 3
 
+#define BUTTONPIN 0
+
 
 int height;
 int width;

      mode = MODE_TCP;
      break;
  }
}



  NeoPixelLightStick.setColor(value % maxValue, r, g, b);
  NeoPixelLightStick.setColor((value + maxValue - 1) % maxValue, 0x00, 0x00, 0x00);
  NeoPixelLightStick.show();
}


void showDigit(byte r, byte g, byte b, int value, int pos) {
  byte hr, hg, hb, lr, lg, lb;
  if (value <= 5) {
    hr = r / 6;
    hg = g / 6;
    hb = b / 6;
    lr = r / 127;
    lg = g / 127;
    lb = b / 127;
  } else {
    hr = r;
    hg = g;
    hb = b;
    lr = r / 6;
    lg = g / 6;
    lb = b / 6;    
    value = value - 5;
  }
  for (int i = 0; i < 4; i++) {
    if (i < value) {
      NeoPixelLightStick.setColor(pos + i, hr, hg, hb);
    } else {
      NeoPixelLightStick.setColor(pos + i, lr, lg, lb);
    }
  }
}


