Commit graph

16 commits

Author SHA1 Message Date
Daniel Gibson 4214caff70 Derive HIDUniversal from HIDComposite
They were mostly the same, I only had to keep the original
version of Poll() because while the differences are very small,
I don't think that unifying them is possible without needlessly
complicating things.
For this to work I had to make the private fields of HIDComposite
protected instead. I took the "+1" in HIDInterface::epIndex[]
from the original HIDUniversal class.
2021-01-13 15:46:46 +01:00
Daniel Gibson 323de96d6e HIDUniversal: Remove unused member and methods
With the comparing buffer/removing duplicates functionality gone,
prevBuf, BuffersIdentical() and SaveBuffer() aren't used anymore.
2021-01-13 10:59:35 +01:00
Kristian Sloth Lauszus 912decede5 We need to make room for the control endpoint in the HIDInterface struct as well
This is needed as the in and out endpoint are defined as follows:

static const uint8_t epInterruptInIndex = 1; // InterruptIN  endpoint index
static const uint8_t epInterruptOutIndex = 2; // InterruptOUT endpoint index

And maxEpPerInterface is set to 2.

See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/569260660
2019-08-08 13:54:54 +02:00
Andrew J. Kroll f948ffccba clean up annoying bogus warnings 2017-12-01 10:43:31 -05:00
Pavel Fatin 969eabb8d7 Compatibility with Arduino's core HID / Mouse / Keyboard libraries
The following collisions resolved:

hid.h -> usbhid.h
hid.cpp -> usbhid.cpp
HID -> USBHID
HID_BOOT_PROTOCOL -> USB_HID_BOOT_PROTOCOL
HID_PROTOCOL_NONE -> USB_HID_PROTOCOL_NONE
HID_PROTOCOL_KEYBOARD -> USB_HID_PROTOCOL_KEYBOARD
HID_PROTOCOL_MOUSE -> USB_HID_PROTOCOL_MOUSE

As a result, it's possible to use the library together with Arduino's bundled HID / Mouse / Keyboard libraries (Leonardo, Micro, or Due).

https://www.arduino.cc/en/Reference/MouseKeyboard
2016-01-16 20:34:16 +01:00
Kristian Sloth Lauszus a2265ea0a9 All these files changes were changed in: bc8000f782
I suspect Andrew used force push to overwrite the history
2015-03-19 18:11:22 +01:00
Andrew J. Kroll d25f28109d all sources to LF 2015-02-22 13:18:45 -05:00
Andrew J. Kroll 196a0b69be Fix all demos, fix all wrong uses of virtual keyword, some spacing cleanup. 2014-11-10 01:35:13 -05:00
Kristian Lauszus 1ebce9b877 Some files were missing copyright section 2014-03-07 02:17:47 +01:00
Kristian Lauszus 6373ebe6ce Can now set the rumble and light on the PS4 controller
Still need to test it via USB
2014-02-17 00:21:21 +01:00
Kristian Lauszus da2ee95445 Added support for the PS4 controller via USB
Also improved the PS4BT library
2014-01-18 22:36:01 +01:00
Andrew J. Kroll f1af9b08ec Janitorial, whitespace fixes. No new code. 2013-12-25 05:09:57 -05:00
Andrew J. Kroll 629594f957 Merge my debug changes.
Merge my format sanity changes.
Track everything.
2013-03-28 03:26:02 -04:00
Oleg Mazurov 3d068a0637 HID joystick support and examples 2012-04-03 14:09:04 -06:00
Oleg Mazurov 2c728cd7dd Arduino-1.0 compatibility added 2012-01-10 12:49:42 -07:00
Oleg Mazurov a97fb4bbda PID 0609 added to prolific driver 2011-10-19 17:33:15 -06:00