Clone wiki

VerySimpleHID / Home

Very Simple HID

I needed to talk to my hobby project via USB. LUFA's Generic HID seemed like the simplest thing I can have on the device side, exposing a way to send or receive a very short buffer (a dozen bytes). It wasn't quite so trivial on the PC side.

This project was born to fill the gap on the PC side. It enables one to send and receive data to a device like the LUFA's Generic HID example. It was inspired by Simple HID, and I borrowed the native method definitions from it.


var devInfo = HidManager.GetHidDeviceInfo(vendorId: 0x03EB, productId: 0x204F);
var dev = new SimpleDataHidDevice(devInfo);

dev.VerySimpleWrite(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 });
var input = dev.VerySimpleRead();

That's pretty much all there is to this library...