/vhid

hidapi wrapper library for V

Primary LanguageCMIT LicenseMIT

vhid

V language HID library, wrapping hidapi and libusb.

Usage

import vhid

fn main() {
    mut device := vhid.open_path("path/to/device")
    defer device.close()

    mut buf := []byte{0, 0, 0, 0, 0, 0, 0, 0}
    device.write(buf)
    device.read(buf)
}

Contributors

License

This software is licensed under the MIT license. See LICENSE for details.