mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
fixed printhex
This commit is contained in:
parent
e1a11e9d5c
commit
84cff61f49
3 changed files with 8 additions and 8 deletions
|
@ -63,22 +63,22 @@ void JoystickReportParser::Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t
|
|||
void JoystickEvents::OnGamePadChanged(const GamePadEventData *evt)
|
||||
{
|
||||
Serial.print("X: ");
|
||||
PrintHex<uint8_t>(evt->X);
|
||||
PrintHex<uint8_t>(evt->X, 0x80);
|
||||
Serial.print("\tY: ");
|
||||
PrintHex<uint8_t>(evt->Y);
|
||||
PrintHex<uint8_t>(evt->Y, 0x80);
|
||||
Serial.print("\tZ: ");
|
||||
PrintHex<uint8_t>(evt->Z1);
|
||||
PrintHex<uint8_t>(evt->Z1, 0x80);
|
||||
Serial.print("\tZ: ");
|
||||
PrintHex<uint8_t>(evt->Z2);
|
||||
PrintHex<uint8_t>(evt->Z2, 0x80);
|
||||
Serial.print("\tRz: ");
|
||||
PrintHex<uint8_t>(evt->Rz);
|
||||
PrintHex<uint8_t>(evt->Rz, 0x80);
|
||||
Serial.println("");
|
||||
}
|
||||
|
||||
void JoystickEvents::OnHatSwitch(uint8_t hat)
|
||||
{
|
||||
Serial.print("Hat Switch: ");
|
||||
PrintHex<uint8_t>(hat);
|
||||
PrintHex<uint8_t>(hat, 0x80);
|
||||
Serial.println("");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue