Kristian Sloth Lauszus
ef7d2e7bf5
Merge branch 'pull214'
2016-04-19 11:27:17 +02:00
Kristian Sloth Lauszus
178af85a26
Fixed warning and remove function prototype
2016-04-19 11:26:30 +02:00
stumpja
5feb32601c
Update hub_demo.ino
2016-04-19 11:26:30 +02:00
stumpja
4be94d11c5
Update hub_demo.ino
...
Updated code per @Lauszus request. The first item updated was a comment on LINE #308 saying that the string is UTF-16LE encoded. This is why we have to skip every second character when printing the string. The second item was figuring out the proper buffer size for LINE #280 . After some research I found that the maximum string length is limited to 255 bytes since the bLength field is 1 byte long. I changed the buffer size to 256 to accommodate for this. Finally, I cleaned up some of the code to make it more consistent. This is purely aesthetic, and subjective at that.
2016-04-19 11:25:44 +02:00
stumpja
3413f5b21e
Update hub_demo.ino
...
updated hub_demo.ino with @Lauszus suggestions
2016-04-19 11:25:44 +02:00
stumpja
fadf774235
Update hub_demo.ino
...
Added functionality to print device string descriptors (I.E. Manufacturer, Product Description and Serial Number.
2016-04-19 11:25:44 +02:00
Kristian Sloth Lauszus
ce7c93a281
Autoformat all MIDI examples
2016-04-18 18:04:08 +02:00
Kristian Sloth Lauszus
45eddcf2db
Fixed some warnings in the MIDI driver
2016-04-18 18:01:10 +02:00
Kristian Sloth Lauszus
4727471c0c
One more whitespace fix in the MIDI driver
2016-04-14 23:15:22 +02:00
Kristian Sloth Lauszus
8ac2035681
Fix indentation, whitespace and convert tabs to spaces in MIDI driver
2016-04-14 23:13:35 +02:00
Kristian Sloth Lauszus
0039719970
MIDI driver was not setting the debug level either
2016-04-14 23:12:18 +02:00
Kristian Sloth Lauszus
8f3faf2bb8
Fix bug in the MIDI driver when debugging was turned on
2016-04-14 23:04:38 +02:00
Kristian Sloth Lauszus
fc0f7ead5d
Try to enable serial debugging in Travis again
2016-04-14 23:02:12 +02:00
Hakan Lindestaf
83a52b5063
Fixed tab/space and added comments
2016-03-23 13:21:49 -07:00
Hakan Lindestaf
c1c955c225
#217 Fixed order of parameters
2016-03-23 13:21:49 -07:00
Hakan Lindestaf
a3b8e8d00b
#217 Include endpoint in ParseHIDData
2016-03-23 13:21:49 -07:00
Hakan Lindestaf
1fe606aa22
#217 Added new class for HIDComposite that can listen to multiple interfaces. Added example for multimedia keyboard
2016-03-23 13:21:48 -07:00
Kristian Sloth Lauszus
36c99442b0
Merge pull request #222 from YuuichiAkagawa/pr_usbh_midi_readme
...
Added info about the MIDI library to the README
2016-03-22 16:39:26 +01:00
Yuuichi Akagawa
ba5ab02622
Added info about the MIDI library to the README
2016-03-23 00:10:25 +09:00
Kristian Sloth Lauszus
e61191f83f
Merge pull request #213 from felis/SRWS1
...
Added support for the SteelSeries SRW-S1 Steering Wheel
2016-03-22 00:15:15 +01:00
Kristian Sloth Lauszus
45e6a67cbc
Added small note about HID library to the README
2016-03-21 18:28:58 +01:00
Kristian Sloth Lauszus
400f9c0dcf
Toggle LED behaviour using the select button
2016-03-21 18:21:12 +01:00
Kristian Sloth Lauszus
92e24534e5
Moved SRWS1 driver into example again
2016-03-21 18:14:43 +01:00
Kristian Sloth Lauszus
73fbb7ab92
Moved serial printing into the example
2016-03-21 18:13:30 +01:00
Kristian Sloth Lauszus
d67e637f2f
Updated some comments
2016-03-21 17:57:43 +01:00
Kristian Sloth Lauszus
4b14c6910c
Make sure that a invalid LED report is not sent
...
Does not seem to make any difference, but just in case
2016-03-21 17:57:33 +01:00
Kristian Sloth Lauszus
4405b0173d
Merge pull request #220 from YuuichiAkagawa/pr_usbh_midi
...
Contribute MIDI host class driver
2016-03-21 17:26:54 +01:00
Yuuichi Akagawa
8aeb975fac
added MIDI host class driver
2016-03-21 23:35:40 +09:00
Kristian Sloth Lauszus
405c126921
Merge pull request #215 from sieren/fix-new-rbl-sdk
...
Make USBH work with new RedBear SDK for nRF51288
2016-03-21 14:52:15 +01:00
Matt Sieren
209e73bd72
Add RBL SDK (S130) Headers
...
Add the new SPI Headers and re-direct to the new SPI Interface.
2016-03-18 22:42:24 +01:00
Matt Sieren
9b829e28b4
Print::write not on RBL
...
It seems like this functionality got removed in the RBL SDK.
Add condition for compiler target..
2016-03-18 22:42:24 +01:00
Matt Sieren
51cb078fa0
Exclude specific enum defines and cast
...
The unscoped Enum for the Controller LEDs is colliding
with changes in the recent RedBearLab nRF51288 SDK, specifically
the PinName enum in the mbed.h header file.
As a simple RBL/mBed specific work-around we are now casting
the LED enums into the USBH LEDEnum enum.
This will potentially break support for controllers on RBL,
but restore the ability to compile the project.
2016-03-18 22:42:23 +01:00
Andrew J. Kroll
b85e21cf98
fixes
2016-03-04 16:00:55 -05:00
Kristian Sloth Lauszus
fb541dc8b9
Moved SRWS1 library into the root
2016-02-26 01:13:46 +01:00
Kristian Sloth Lauszus
29c98503d1
Make button click state public and disable debug printing by default
2016-02-26 01:13:20 +01:00
Kristian Sloth Lauszus
267f330ed7
Put DPADEnum into the source file, so it does not conflict with the one in the SRWS1 driver
2016-02-26 01:02:39 +01:00
Kristian Sloth Lauszus
f05f791841
Show tilt using LEDs by default
2016-02-25 17:48:18 +01:00
Kristian Sloth Lauszus
c0f0ae4cb9
Initial commit for the SteelSeries SRW-S1 Steering Wheel
2016-02-20 17:16:41 +01:00
Kristian Sloth Lauszus
3ca6ddd8d4
Merge pull request #210 from joseangeljimenez/master
...
Added support to HIDBoot for easily enabling the Report Protocol
2016-02-16 17:05:58 +01:00
Jose A. Jimenez
a948b7afe5
Some corrections as agreed with @Lauszus. Added flag bRptProtoEnable to HIDBoot() constructor. The flag defaults to false in order to maintain current behavior (Boot Protocol). If flag is the to true, HIDBoot() will enable the Report Protocol. This modification is very useful for communication with HID devices with the full, richer, Report Protocol.
2016-02-16 12:20:39 +01:00
Kristian Sloth Lauszus
5f460dec87
Merge pull request #207 from matt-bull/patch-1
...
* patch-1:
Have PS3.printStatusString() print to a new line each time it is called.
2016-02-09 20:50:09 +01:00
matt-bull
0f80087ee7
Have PS3.printStatusString() print to a new line each time it is called.
2016-02-09 20:49:47 +01:00
Kristian Sloth Lauszus
0cdde7afe9
Check status byte in HCI Authentication Complete Event
...
If paring fails simply disconnect
2016-02-09 12:10:12 +01:00
Jose A. Jimenez
e9c28d762d
Added flag bRptProtoEnable to HIDBoot() constructor. The flag defaults to false in order to maintain current behavior (Boot Protocol). If flag is the to true, HIDBoot() will enable the Report Protocol. This modification is very useful for communication with HID devices with the full, richer, Report Protocol.
2016-02-07 22:32:08 +01:00
Kristian Sloth Lauszus
9eed52026b
There is no reason to cast implicit to HIDReportParser, as the classes already inherits it
2016-01-20 14:59:16 +01:00
Kristian Sloth Lauszus
099ced46df
Merge pull request #198 from felis/issue186
...
Store rumble value in local buffer, so the rumble is not affected when setting the LEDs
2016-01-20 01:32:19 +01:00
Kristian Sloth Lauszus
b9220a90e6
Updated PS3BT example, so it demonstrates rumble functionality
2016-01-20 01:07:26 +01:00
Kristian Sloth Lauszus
627c0ebc77
Store rumble value in local buffer, so the rumble is not affected when setting the LEDs
...
Fixes #186
2016-01-19 18:27:45 +01:00
Kristian Sloth Lauszus
0fce0106ed
Merge pull request #200 from pavelfatin/master
...
Compatibility with Arduino's core HID / Mouse / Keyboard libraries
2016-01-18 13:02:12 +01: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