summaryrefslogtreecommitdiff
path: root/examples/device/hid_generic_inout/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-05-29 15:58:01 +0700
committerhathach <[email protected]>2019-05-29 15:58:01 +0700
commitdfdae7a4d28a7c45535e9d709eade45c1a88a9f2 (patch)
treef97b54178d64b3e30cc968a5bb5d6c29151c945e /examples/device/hid_generic_inout/src
parent5f34c63660348f422d1b3934fd03cee62cbf3092 (diff)
add node hid installation instruction
Diffstat (limited to 'examples/device/hid_generic_inout/src')
-rw-r--r--examples/device/hid_generic_inout/src/main.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/examples/device/hid_generic_inout/src/main.c b/examples/device/hid_generic_inout/src/main.c
index b08ca5aee..bbc61a797 100644
--- a/examples/device/hid_generic_inout/src/main.c
+++ b/examples/device/hid_generic_inout/src/main.c
@@ -34,9 +34,18 @@
* It will receive data from Host (In endpoint) and echo back (Out endpoint).
* HID Report descriptor use vendor for usage page (using template TUD_HID_REPORT_DESC_GENERIC_INOUT)
*
- * Run 'python3 hid_test.py' on your PC to send and receive data to this device.
- * Python and `hid` package is required, for installation please follow
- * https://pypi.org/project/hid/
+ * There are 2 ways to test the sketch
+ * 1. Using nodejs
+ * - Install nodejs and nmp to your PC
+ * - Install execellent node-hid (https://github.com/node-hid/node-hid) by
+ * $ npm install node-hid
+ * - Run provided hid test script
+ * $ node hid_test.js
+ *
+ * 2. Using python hidRun
+ * - Python and `hid` package is required, for installation please follow https://pypi.org/project/hid/
+ * - Run provided hid test script to send and receive data to this device.
+ * $ python3 hid_test.py
*/
//--------------------------------------------------------------------+