mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Merge branch 'master' of https://github.com/felis/USB_Host_Shield_2.0
This commit is contained in:
commit
1a807a11a6
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
/* Parser for standard HID scale (usage page 0x8d) data input report (ID 3) */
|
/* Parser for standard HID scale (usage page 0x8d) data input report (ID 3) */
|
||||||
|
#include <avr/dtostrf.h>
|
||||||
#include "scale_rptparser.h"
|
#include "scale_rptparser.h"
|
||||||
|
|
||||||
const char* UNITS[13] = {
|
const char* UNITS[13] = {
|
||||||
|
|
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue