From 44d3b4a3223fc125b01370482b98e6f1ccbba370 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sat, 23 May 2015 15:46:34 +0200 Subject: [PATCH 1/2] Added missing header needed for the Due --- examples/HID/scale/scale_rptparser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/HID/scale/scale_rptparser.cpp b/examples/HID/scale/scale_rptparser.cpp index 01ed980c..f88d21ac 100644 --- a/examples/HID/scale/scale_rptparser.cpp +++ b/examples/HID/scale/scale_rptparser.cpp @@ -1,4 +1,5 @@ /* Parser for standard HID scale (usage page 0x8d) data input report (ID 3) */ +#include #include "scale_rptparser.h" const char* UNITS[13] = { From 36056a40395d3b884ffe0562c223208563d8643f Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sat, 23 May 2015 15:49:46 +0200 Subject: [PATCH 2/2] 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 ); }