Skip to content

Commit 99a27d0

Browse files
facchinmcmaglie
authored andcommitted
rework HID-based libraries and add Due fallback
1 parent 3d61f6e commit 99a27d0

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

libraries/HID/HID.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
#if defined(USBCON)
2323

24-
//#define RAWHID_ENABLED
25-
2624
HID_ HID;
2725

2826
static u8 HID_ENDPOINT_INT;

libraries/HID/HID.h

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
#if defined(USBCON)
2929

30+
#define _USING_HID
31+
3032
//================================================================================
3133
//================================================================================
3234
// HID 'Driver'

libraries/HID/keywords.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#######################################
2+
# Syntax Coloring Map HID
3+
#######################################
4+
5+
#######################################
6+
# Datatypes (KEYWORD1)
7+
#######################################
8+
9+
HID KEYWORD1
10+
11+
#######################################
12+
# Methods and Functions (KEYWORD2)
13+
#######################################
14+
begin KEYWORD2
15+
SendReport KEYWORD2
16+
AppendDescriptor KEYWORD2
17+
18+
#######################################
19+
# Constants (LITERAL1)
20+
#######################################
21+
HID_TX LITERAL1

libraries/HID/library.properties

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name=HID
2+
version=1.0
3+
author=Arduino
4+
maintainer=Arduino <info@arduino.cc>
5+
sentence=Module for PluggableUSB infrastructure. Exposes an API for devices like Keyboards, Mice and Gamepads
6+
paragraph=
7+
url=http://www.arduino.cc/en/Reference/HID
8+
architectures=avr

0 commit comments

Comments
 (0)