 BLEDescriptor readStatusDescriptor = BLEDescriptor("2901", "Read-BLE-Device-Status");
 
 const unsigned char initialStatus[BUF_LEN] = {0x11,0x11,0x11,0x11,0x11};
-char buttonValue = 0;
+int currentState;
+int debounceState;
+int buttonState = 0;
 
 void setup() {
   Serial.begin(9600);


void processButtonChange() {
  // read the current button pin state
  buttonValue = digitalRead(BUTTON_PIN);

  // has the value changed since the last read
  bool buttonChanged = (readStatusCharacteristic.value() != buttonValue);

  if (buttonChanged) {
    Serial.println("button value");
    Serial.println(buttonValue, DEC);
    readStatusCharacteristic.setValue(buttonValue);
    renderStatus(buttonValue, 0);
  }
}


}

void renderStatus(int color, int pixel){
  if (color == 0) {
     // Reset to red, off
     animatePixels(strip, 255, 0, 0, pixel);
  } else {
    // Turn neo pixel green and animate
     animatePixels(strip, 0, 255, 0, pixel);
  }
 
}
