Renamed Keyboard instance to HidKeyboard, so it works on the Due as well

This commit is contained in:
Kristian Sloth Lauszus 2015-05-23 15:49:46 +02:00
parent 44d3b4a322
commit 36056a4039

View file

@ -14,7 +14,7 @@
USB Usb; USB Usb;
USBHub Hub1(&Usb); USBHub Hub1(&Usb);
USBHub Hub2(&Usb); USBHub Hub2(&Usb);
HIDBoot<HID_PROTOCOL_KEYBOARD> Keyboard(&Usb); HIDBoot<HID_PROTOCOL_KEYBOARD> HidKeyboard(&Usb);
ADK adk(&Usb,"Circuits@Home, ltd.", ADK adk(&Usb,"Circuits@Home, ltd.",
"USB Host Shield", "USB Host Shield",
@ -80,7 +80,7 @@ void setup()
while(1); //halt while(1); //halt
}//if (Usb.Init() == -1... }//if (Usb.Init() == -1...
Keyboard.SetReportParser(0, (HIDReportParser*)&Prs); HidKeyboard.SetReportParser(0, (HIDReportParser*)&Prs);
delay( 200 ); delay( 200 );
} }