-
Notifications
You must be signed in to change notification settings - Fork 10
/
README
13 lines (8 loc) · 806 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
A C# class to interface with a USB scale extended from the blog post http://nicholas.piasecki.name/blog/2008/11/reading-a-stamps-com-usb-scale-from-c-sharp/
This class uses Mike O’Brien’s USB HID library, which can be found at: http://github.com/mikeobrien/HidLibrary Current Binaries: http://github.com/mikeobrien/HidLibrary/downloads
See Example.cs on how to use the library.
Tested with the Mettler Toledo PS60 Scale (may work with other Mettler Toledo scales automaticly)
Should also support the Stamps.com USB Scale
Other scale support should be possible by adding their vendor/product id to the GetDevices() method in the Scale.cs file.
Example compilation:
C:\usb_scale> c:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /t:exe /out:UsbScale.exe Example.cs Scale.cs /r:HidLibrary.dll