CC.USBHID
Overview:
CC.USBHID is a .NET class, written in Visual C#, that allows access to HID compliant USB devices and provides a framework for .NET developers to write “drivers” for their USB HID devices. The 0.0.8.323 beta release was written because I needed to access a picoLCD display. Some of the code is based on the C++ HIDDaemon application that is included in the picoLCD Windows SDK. With that said there are still some trivial code changes required in order to use the class to find other devices (specifically the CC.USBHID.Devices.getDeviceProperty() and CC.USBHID.Devices.ChooseHIDDevice() methods)
The class uses lots of native Windows API methods, some of which are unsafe, so you will need to configure your project to allow unsafe code. I toyed with the idea of building a C++ DLL to contain the API and unsafe code but for the most part I’m still a C++ noob.
Download:
Download version 0.0.8.323 Beta (Binary .zip)
Download version 0.0.8.323 Beta (Source)
Installation:
N/A
Requirements:
Microsoft .NET Compact Framework 3.5, Visual Studio 2008
Changelog:
0.0.8.323 - March 23, 2008
- Initial beta release
December 16th, 2008 at 4:53 pm
Hi There,
I was so happy to see that you took the time to convert the PicoLCD 2×20 OEM software from C++ to C#. I have the PicoLCD4×20 and was in the process of converting the software to C# but I am fairly new to the language, so this will save me a lot of time. The command syntax for the 2X20 is fairly well documented and simple. The newer device shares some of the same commands for Clear Screen, Backlight, etc, but has introduced a more complex of commands for setting the text which I am just now parsing out.
Thank you for sharing!
December 22nd, 2008 at 12:59 pm
I’m so glad someone is actually using this and has taken the time to give feedback. More often than not I post my code and have no idea if anyone finds it useful. If you want feel free to send me any updates you make and I can post the new version here; giving you credit for the changes.
Happy holidays!