title: Sending Hex code using pyusb
body: <p>I have been trying for 4 days now to send the hex code <code>10 80 00 00 00 00 00 00</code> to a USB device connected to my raspberry pi running debian.</p>
  
  <p>I've tried libusb with c but I have no idea what I am doing. I thought PyUSB would be a better solution but ive found zero documentation for what I need and the tutorial did'nt help.</p>
  
  <p>I can find the device using </p>
  
  <pre><code>import usb.core
  dev = usb.core.find(idVendor=0x12BF, idProduct=0xFF03)
  </code></pre>
  
  <p>But I cant find any information on how to send the above hex code. My device is a usb based relay. It works fine on windows in a vb HID application but I am struggling here. seem to be going round in circles.</p>