mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Renamed Keyboard instance to HidKeyboard, so it works on the Due as well
This commit is contained in:
parent
44d3b4a322
commit
36056a4039
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
|||
USB Usb;
|
||||
USBHub Hub1(&Usb);
|
||||
USBHub Hub2(&Usb);
|
||||
HIDBoot<HID_PROTOCOL_KEYBOARD> Keyboard(&Usb);
|
||||
HIDBoot<HID_PROTOCOL_KEYBOARD> HidKeyboard(&Usb);
|
||||
|
||||
ADK adk(&Usb,"Circuits@Home, ltd.",
|
||||
"USB Host Shield",
|
||||
|
@ -80,7 +80,7 @@ void setup()
|
|||
while(1); //halt
|
||||
}//if (Usb.Init() == -1...
|
||||
|
||||
Keyboard.SetReportParser(0, (HIDReportParser*)&Prs);
|
||||
HidKeyboard.SetReportParser(0, (HIDReportParser*)&Prs);
|
||||
|
||||
delay( 200 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue