+// To compile select:
+// - Tools -> Board -> Teensy LC
+//
+// Then:
+// If you want to debug and enable serial communication:
+// - Tools -> USB Type -> Serial / Keyboard / Mouse / Joystick
+// else
+// - Tools -> USB Type -> Keyboard / Mouse / Joystick
+
 //#define DEBUG
 
-#define PIN_X 1
-#define PIN_Y 2
-#define PIN_Z 0
+#define PIN_SHIFTER_X 1
+#define PIN_SHIFTER_Y 2
+#define PIN_HANDBRAKE 3
 
 #define GEAR_1 1
 #define GEAR_2 2


  }

  if (y < 65) {
    if (x < 300) {
      return GEAR_6;
    }  



int get_current_gear() {
  int x = analogRead(PIN_SHIFTER_X);
  int y = analogRead(PIN_SHIFTER_Y);

  if (y > 1000) {
    if (x < 100) {
