Skip to content

Commit 427e98d

Browse files
committed
add node hid installation instruction
1 parent fbe5505 commit 427e98d

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

examples/HID/hid_composite/hid_composite.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void loop()
6969
usb_hid.mouseMove(RID_MOUSE, delta, delta); // right + down
7070

7171
// delay a bit before attempt to send keyboard report
72-
delay(2);
72+
delay(10);
7373
}
7474
}
7575

examples/HID/hid_generic_inout/hid_generic_inout.ino

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,18 @@
66
* It will receive data from Host (In endpoint) and echo back (Out endpoint).
77
* HID Report descriptor use vendor for usage page (using template TUD_HID_REPORT_DESC_GENERIC_INOUT)
88
*
9-
* Run 'python3 hid_test.py' on your PC to send and receive data to this device.
10-
* Python and `hid` package is required, for installation please follow
11-
* https://pypi.org/project/hid/
9+
* There are 2 ways to test the sketch
10+
* 1. Using nodejs
11+
* - Install nodejs and nmp to your PC
12+
* - Install execellent node-hid (https://github.com/node-hid/node-hid) by
13+
* $ npm install node-hid
14+
* - Run provided hid test script
15+
* $ node hid_test.js
16+
*
17+
* 2. Using python hidRun
18+
* - Python and `hid` package is required, for installation please follow https://pypi.org/project/hid/
19+
* - Run provided hid test script to send and receive data to this device.
20+
* $ python3 hid_test.py
1221
*/
1322

1423
#include "Adafruit_TinyUSB.h"

0 commit comments

Comments
 (0)