gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
229 stars 71 forks source link

Sending bytes with value > 127 #61

Closed DiskCrasher closed 7 years ago

DiskCrasher commented 7 years ago

Probably more a Java question than hid4java, but coming from a C# world where byte is 0-255, how do I send (or create) a byte for a value greater than 127 (e.g. 0xc3)?

DiskCrasher commented 7 years ago

Never mind. The bit pattern is the same regardless of the sign.