 
 
 int get_current_gear() {
-  int x = analogRead(PIN_X);
-  int y = analogRead(PIN_Y);
+  int x = analogRead(PIN_SHIFTER_X);
+  int y = analogRead(PIN_SHIFTER_Y);
 
   if (y > 1000) {
     if (x < 100) {

//#define DEBUG

#define PIN_X 1
#define PIN_Y 2
#define PIN_Z 0

#define GEAR_1 1
#define GEAR_2 2

}

void debug() {
  Serial.print("shifter x: ");
  Serial.print(analogRead(PIN_SHIFTER_X));
  Serial.print(" shifter y: ");
  Serial.print(analogRead(PIN_SHIFTER_Y));
  Serial.print(" handbrake: ");
  Serial.println(analogRead(PIN_HANDBRAKE));
}

void poll_shifter() {
  int gear = get_current_gear();

  if (gear != 0) {
    Joystick.button(gear, 1);
    Joystick.send_now();
