hid
hid copied to clipboard
Gopher Interface Devices (USB HID)
I'm trying to build a Go program for my LinkSys MR8300 V1.1 router, which has `armv7l` processor (`uname -a` output), which is ARM v7, 32-bit CPU. I have OpenWrt operating...
There doesn't seem to be a sensible way to do a read that doesn't then block forever (and lock!)
When calling write in Windows, the number of written bytes is off by 1. This is the result of prepending the HID report ID in Windows. This different behavior may...
``` # github.com/karalabe/hid vendor/github.com/karalabe/hid/hid_enabled.go:23:11: fatal error: os/threads_posix.c: No such file or directory #include "os/threads_posix.c" ^~~~~~~~~~~~~~~~~~~~ ``` Have been getting this on ubuntu18. CGO_ENABLED=1. libusb 1.0.0 + libusb1.0.0-dev installed. Wondering what...
This works around https://github.com/golang/go/issues/26366 by adding a `dummy.go` file in required folders. Without this fix, all C and H files will be missing from the vendor folder, causing the build...
Fixes #36, replaces #16.
Add a script that downloads and install a given version of `libusb`. This will allow to upgrade the bundled `libusb`. Usage: `./upgrade-libusb.sh ` Example: `./upgrade-lubusb.sh 1.0.24`
Add a script that downloads and install a given version of hidapi. This will allow to upgrade the bundled hidapi. Usage: `./upgrade-hidapi.sh ` Example: `./upgrade-hidapi.sh 0.11.2`
[`Write`](https://pkg.go.dev/github.com/karalabe/hid#Device.Write) on Windows reports one more byte written than asked for. Internally, this is because [a `0x00` byte is prepended](https://github.com/karalabe/hid/blob/v1.0.0/hid_enabled.go#L168) to the data. However: * this is not documented *...
When running go tests or vet, warnings pop up similar to those described here: https://github.com/karalabe/usb/issues/25 ``` # github.com/karalabe/hid In file included from vendor/github.com/karalabe/hid/hid_enabled.go:38: vendor/github.com/karalabe/hid/hidapi/mac/hid.c:693:34: warning: 'kIOMasterPortDefault' is deprecated: first deprecated...