Search found 109 matches

by arpruss
Sun Jan 14, 2018 3:18 pm
Forum: Projects
Topic: Exercise machine USB game controller
Replies: 1
Views: 88

Exercise machine USB game controller

I made a USB game controller where game movement and buttons are controlled with a Nunchuck or a Gamecube controller and speed of movement (slider) is controlled with the rotation sensor of an elliptical or exercise bike. Sketch and schematic: https://github.com/arpruss/gamecube-usb-adapter Build in...
by arpruss
Sun Jan 07, 2018 6:47 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 65
Views: 1189

Re: USB HID / USB MIDI as libraries

And I just tried serial/HID composite on a Win 8.1 machine. With the Maple serial driver installed, HID doesn't work. Without the Maple serial driver, serial doesn't work. :-( I also added a setSerial() method that lets you turn off the CompositeSerial support, which might be useful for OSes like Wi...
by arpruss
Sun Jan 07, 2018 5:43 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 65
Views: 1189

Re: USB HID / USB MIDI as libraries

I've also dumped USB MIDI into the USBHID library (which is somewhat poorly named now). See the mididemo example.
by arpruss
Sun Jan 07, 2018 5:22 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 65
Views: 1189

Re: USB HID / USB MIDI as libraries

I've integrated a simple xbox360 controller emulator. See the x360 example.

It's not composited with serial support, unlike the standard USBHID stuff.
by arpruss
Sun Jan 07, 2018 4:17 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 65
Views: 1189

Re: USB HID / USB MIDI as libraries

I've changed the main class from USBDevice to USBHIDDevice and its instance from USB to USBHID. I am going to try to make this the last change that breaks existing code that depends on the high level functions in the library, but it's needed to future compatibility with some non-HID devices.
by arpruss
Wed Jan 03, 2018 6:06 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 65
Views: 1189

Re: USB HID / USB MIDI as libraries

I added a no-wait option for output/feature host-to-device, so that the USB HID handler silently updates the output/feature buffers in the background without polling being needed to ensure that the sketch doesn't miss data. And added a keyboardwithleds example that echoes keyboard LED status to seri...
by arpruss
Thu Dec 21, 2017 4:47 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 65
Views: 1189

Re: USB HID / USB MIDI as libraries

I just switched the default PID from 0x24 to 0x04, to match the standard core PID.
by arpruss
Wed Dec 20, 2017 2:17 am
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 65
Views: 1189

Re: USB HID / USB MIDI as libraries

Sure. When you call usb.begin(), you can do something like usb.begin(HID_JOYSTICK, 0, 0, "I made it", "My funny joystick"). See USBHID.h for all parameters. If you want, you can replace the 0,0 with your favorite VID and PID numbers, e.g., to fool the OS into thinking you've got a different device t...
by arpruss
Tue Dec 19, 2017 2:50 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 65
Views: 1189

Re: USB HID / USB MIDI as libraries

What do you mean?
by arpruss
Mon Dec 18, 2017 3:40 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 65
Views: 1189

Re: USB HID / USB MIDI as libraries

Added serial number support to the library. Default serial number is 00000000000000000001. It can be specified in the USB.begin() call. You can even make it be the device ID, but then you lose any potential usefulness it might have for cryptographic purposes.