-
Notifications
You must be signed in to change notification settings - Fork 17
/
usb_hid_universal.h
30 lines (27 loc) · 958 Bytes
/
usb_hid_universal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Arduino Smart Charger / Discharger
// ---------------------------------------------------------------------------
// Created by Brett Watt on 20/07/2018
// Copyright 2018 - Under creative commons license 3.0:
//
// This software is furnished "as is", without technical support, and with no
// warranty, express or implied, as to its usefulness for any purpose.
//
// @brief
// This is the header file for the Arduino Smart Charger / Discharger
// USB Host as Standard HID
//
// @author Email: [email protected]
// Web: www.vortexit.co.nz
#include <hidboot.h> //Barcode Scanner
#include <hiduniversal.h> //Barcode Scanner
// USB Host Shield - Barcode Scanner
class KbdRptParser : public KeyboardReportParser
{
protected:
virtual void OnKeyDown (uint8_t mod, uint8_t key);
virtual void OnKeyPressed(uint8_t key);
};
KbdRptParser Prs;
USB Usb;
HIDUniversal Hid(&Usb);
HIDBoot<USB_HID_PROTOCOL_KEYBOARD> HidKeyboard(&Usb);