 
   // I/O directions
   pinMode(btStatus, INPUT);
-  pinMode(teensyLed, OUTPUT);
+  pinMode(batteryLed, OUTPUT);
   pinMode(connectionLed, OUTPUT);
 
   // wake-up blinking
+
   digitalWriteFast(connectionLed, HIGH);
-  digitalWriteFast(teensyLed, HIGH);
+  digitalWriteFast(batteryLed, HIGH);
   delay(1000);
   digitalWriteFast(connectionLed, LOW);
-  digitalWriteFast(teensyLed, LOW);
-  delay(1000);
-  digitalWriteFast(teensyLed, HIGH);
-  
-  // set led status
-  teensyLedStatus=true;
-  
+  digitalWriteFast(batteryLed, LOW);
+
   // set all joystick things to known positions
   Joystick.useManualSend(true); // enable this to get simultaneous button presses if needed
   Joystick.X(512);            // "value" is from 0 to 1023

void loop() {
  // Check Bluetooth status
  if (digitalReadFast(btStatus)) {
    digitalWriteFast(connectionLed, HIGH);
    btConnected = true;
  } else {
    btConnected = false;
  }

  if(btConnected) {
    if(Serial1.available()) {

void runWaitBtIndication() {
  if (millis() > (lastWaitIndicationUpdate + WaitIndicationInterval)) {
    lastWaitIndicationUpdate = millis();
    if(connectionLedStatus) {
      analogWrite(connectionLed, ledOutputValue);
    } else{
      analogWrite(connectionLed, 0);
    }
    connectionLedStatus = !connectionLedStatus;
  }
}

void runBatteryIndication() {
  // blink status led at known interval when battery is low.
    if (batteryLow) {
      if(batteryLedStatus) {
        analogWrite(batteryLed, ledOutputValue);
      } else {
        analogWrite(batteryLed, 0);
      }
      batteryLedStatus = !batteryLedStatus;
  }
}

