   Serial.println();
 }
 
-void move_mouse(int dx, int dy) {
-  Mouse.move(dx * mouseSpeed, dy * mouseSpeed, 0); 
-  lastMouseDown = millis();
-  mouseSpeed += MOUSE_SPEEDUP;
-}
-
-void release_keys() {
-  if (lastEnterDown && millis() - lastEnterDown > KEY_TIMEOUT) {
-    Mouse.release();
-    lastEnterDown = 0;
-  }
-  
-  if (lastBackDown && millis() - lastBackDown > KEY_TIMEOUT) {
-    Keyboard.release(KEY_ESC);
-    lastBackDown = 0;
-  }
-
-  if (lastMouseDown && millis() - lastMouseDown > KEY_TIMEOUT) { 
-    lastMouseDown = 0;
-    mouseSpeed = MOUSE_BASE_SPEED;
-  }
-}
-
-void check_ignition_key() {
-   if (lastHeartbeat && millis() - lastHeartbeat > HEARTBEAT_TIMEOUT) {
-     lastHeartbeat = 0;
-     turn_off();
-   }
-}
-
-void turn_off() {
-  Serial.println("TURN OFF");
-}
-

      if (!lastBackDown) 
        Keyboard.press(KEY_ESC); 
       
      lastBackDown = millis();
      break;
      
    case NAV_ENTER:
      if (!lastEnterDown)
        Mouse.press(); 
      
      lastEnterDown = millis();
      break;
  }
}

void dump_frame() {
  for (int i = 0; i < frame.num_bytes(); i++) {

}

void loop() {
  currentMillis = millis();
  
  if (Serial1.available())
    read_lin_bus();

