From 36056a40395d3b884ffe0562c223208563d8643f Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sat, 23 May 2015 15:49:46 +0200 Subject: [PATCH] Renamed Keyboard instance to HidKeyboard, so it works on the Due as well --- examples/adk/adk_barcode/adk_barcode.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/adk/adk_barcode/adk_barcode.ino b/examples/adk/adk_barcode/adk_barcode.ino index a308ff0f..04c8d258 100644 --- a/examples/adk/adk_barcode/adk_barcode.ino +++ b/examples/adk/adk_barcode/adk_barcode.ino @@ -14,7 +14,7 @@ USB Usb; USBHub Hub1(&Usb); USBHub Hub2(&Usb); -HIDBoot Keyboard(&Usb); +HIDBoot 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 ); }