 }
 
 // called after UART slave reports button press/release
+// map switch IDs to joystick buttons
 void handleSlaveButton(const uint8_t id, const uint8_t state) {
 	// handle stage switch
 	uint8_t buttonId = 0x80;

	}
}

void loop() {
  checkSerialInputUSBtoUART();
  checkSerialInputUARTtoUSB();
  Joystick.sendState();
  delay(200);
}


  analogOutPin(0,9),	// g-force
  analogOutPin(1,10)    // electrical power
};

// Set the pins on the I2C chip used for LCD connections:
//                    addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
