Author Topic: Where to start. DigiUSB as output device.  (Read 2410 times)

WelshMullet

  • Newbie
  • *
  • Posts: 3
Where to start. DigiUSB as output device.
« on: June 13, 2015, 04:40:42 pm »
Hello,

I'm looking to replicate this project http://tim.cexx.org/projects/vibe/ with a digispark.

Clearly, the way I need to go is register as a USB device with the correct Vendor and Product IDs. USB Vendor ID (VID) of 0x0B49 and Product ID (PID) of 0x064F.

Then, I need to listed for the packets:

bRequest: 0x00
wValue: Both bytes set to (unsigned char) vibration level
wIndex: Low byte is lower nibble of vibration level; high byte 0x03 always.
Count: 0x00 (no data phase)

Does anyone have any suggestions as to which resources and examples I should look at to make a start on this?

Many thanks,
WelshMullet