     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");
+}
+

  }

  release_keys();
}

void handle_frame() {
  if (frame.get_byte(0) != SWM_ID)
    return;

  // skip zero values 20 0 0 0 0 FF

#define CS_PIN 15
#define RX_LED 17

#define HEARTBEAT_TIMEOUT 2000
#define KEY_TIMEOUT 100
#define MOUSE_BASE_SPEED 8
#define MOUSE_SPEEDUP 3

#define SYN_FIELD 0x55
#define SWM_ID 0x20
#define HEARTBEAT_ID 0xCF

// Volvo V50 2007 SWM key codes
//
