File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -68,12 +68,15 @@ which HIDAPI supports. Since it relies on a 3rd party library, building it
68
68
is optional but recommended because it is so useful when debugging hardware.
69
69
70
70
## What Does the API Look Like?
71
- The API provides the the most commonly used HID functions including sending
72
- and receiving of input, output, and feature reports. The sample program,
71
+ The API provides the most commonly used HID functions including sending
72
+ and receiving of input, output, and feature reports. The sample program,
73
73
which communicates with a heavily hacked up version of the Microchip USB
74
74
Generic HID sample looks like this (with error checking removed for
75
75
simplicity):
76
76
77
+ ** Warning: Only run the code you understand, and only when it conforms to the
78
+ device spec. Writing data at random to your HID devices can break them.**
79
+
77
80
``` c
78
81
#ifdef WIN32
79
82
#include <windows.h>
@@ -139,6 +142,10 @@ int main(int argc, char* argv[])
139
142
}
140
143
```
141
144
145
+ You can also use [hidtest/hidtest.c](https://github.com/libusb/hidapi/blob/master/hidtest/hidtest.c)
146
+ as a starting point for your applications.
147
+
148
+
142
149
## License
143
150
HIDAPI may be used by one of three licenses as outlined in [LICENSE.txt](LICENSE.txt).
144
151
You can’t perform that action at this time.
0 commit comments