 
 #define CS_PIN 15
 #define RX_LED 17
-#define MOBILE_CHARGER_PIN A3
 #define RTI_RX_PIN 16
 #define RTI_TX_PIN 10
 
+#define POWER_BUTTON_PIN A3
+#define POWER_BUTTON_DURATION 2500
+
+#define ON_CLICK_DURATION 100
+#define OFF_CLICK_DURATION 3000 // how long to hold "back" button to turn off
+
+#define CLICK_TIMEOUT 100
+
 #define HEARTBEAT_TIMEOUT 2000
-#define CLICK_TIMEOUT 100
-#define OFF_CLICK_TIMEOUT 3000 // how long to hold "back" button to turn off
-
 #define RTI_INTERVAL 100
-#define MOBILE_CHARGER_TRIGGER_TIME 2500
 
 #define MOUSE_BASE_SPEED 8
 #define MOUSE_SPEEDUP 3

}

void handle_joystick() {
  switch (frame.get_byte(1)) {
    case JOYSTICK_UP:
      move_mouse(0, -1);
      break;

}

void turn_on_phone() {
  analogWrite(POWER_BUTTON_PIN, 255);
  lastOnTrigger = currentMillis;
}

void release_on() {
  if (lastOnTrigger && currentMillis - lastOnTrigger > POWER_BUTTON_DURATION) {
    analogWrite(POWER_BUTTON_PIN, 0);
    lastOnTrigger = 0;
    debug("Release on");
  }
