1
0
mirror of https://github.com/gdsports/USBHost_t36 synced 2024-11-14 13:15:00 -05:00
Commit Graph

15 Commits

Author SHA1 Message Date
PaulStoffregen
5c6d3c9e32 Arduino style API for AntPlus payload parsers 2017-10-21 03:34:40 -07:00
PaulStoffregen
1613316f7c Arduino style callbacks from channel status & device ID 2017-10-20 07:50:38 -07:00
PaulStoffregen
94b2decbca AntPlus polling and example (still incomplete) 2017-10-20 06:45:27 -07:00
Kurt Eckhardt
4e2ea2d96e String buffers - Devices contribute buffers
instead of having each HUB have 7 buffers, which can eat up space.  We have each main object contribute currently one string buffer, which than when we initialize a Device_t we try to allocate one for it, likewise we release it when the Device is released.

Hopefully less memory needed.

Also updated such that the HIDInput classes can not retrieve these strings.

Changed test program to now also have list of HIDInput objects and when I detect a new one, I again print out info on it...
2017-10-19 14:57:52 -07:00
Kurt Eckhardt
40cb6322ac WIP - Add Strings to device structure
Added the ability to query the
Manufactur, product name and serial number strings from a device.

WIP - Eats up lots of memory, next up experiment move from Device_t object to maybe top level objects.  Probably fewer than them as each hub allocates something like 7 Device objects
2017-10-14 14:27:09 -07:00
Kurt Eckhardt
03a7150872 Display Vendor/Product ID on connect 2017-10-14 08:16:11 -07:00
Kurt Eckhardt
9abafa6106 Example: Show which drivers are active
I was wondering which drivers were in use, so now print when they are connected or disconnected
2017-10-13 12:25:24 -07:00
Kurt Eckhardt
3c34cc2f6f Work around for MS keyboard
I updated the keyboard extras to detect if the report ID is 0xff00 and if so ignore it in the Mouse extras process code.  This helped not handling a lot of extra messages generated by MS keyboard.

Also updated Test app to show names of some of these special keys.
2017-10-12 19:23:02 -07:00
Kurt Eckhardt
dbe5292471 Keyboard HID extras plus map extra keys
This delta, adds an extra keyboard object to handle those keys that are not part of the main keyboard class.  In particular there are separate HID reports for some of the keys, such as Power keys, and multimedia keys.

These reports might be on separate Interface or in cases where the mouse and keyboard are on the same device, the extra reports may be on the Mouse Interface.

So far I have not tried to combine with Keyboard object as might require multiple inheritance which I would like to avoid.

Also I extended the special key mapping table to map several other keys like F1-12, Arrow, Home/end... To special values where the 0x80 bit is set.  I used the same values as used for the Arduino Keyboard library.  I did not use their defines as they used defines like KEY_F1, which already exists in core, but in core it is the scan code from the keyboard and not the end user value.
2017-10-12 10:27:41 -07:00
Kurt Eckhardt
d792ffd2e8 PS4 support
Had to increase size of HID report to 512.
Allow HAT to work 10039

Mouse Example prints out Z, Rz, Ry, Rx and Hat values
2017-09-12 06:57:19 -07:00
PaulStoffregen
6e34e81fcf Add Joystic driver 2017-09-11 18:32:16 -07:00
PaulStoffregen
f58ed079a6 Mouse using HID parser 2017-09-10 03:48:10 -07:00
PaulStoffregen
75ac4d21e6 Add Mouse driver from wwatson
https://forum.pjrc.com/threads/45740-USB-Host-Mouse-Driver
2017-08-24 13:41:39 -07:00
PaulStoffregen
c70cf5fef6 Update Test example slightly 2017-03-07 07:47:02 -08:00
PaulStoffregen
6bacbaf537 Convert to Arduino library format 2017-03-07 07:40:06 -08:00