Commit graph

310 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
c8b7c9a018 Added yield() inside the for-loops as well 2017-06-13 13:02:15 +02:00
Kristian Sloth Lauszus
da253b25bc Reset the watchdog timer on the ESP8266 when the sketch is done 2017-06-13 12:57:56 +02:00
Kristian Sloth Lauszus
a057d83d5e Do not use fixed width integer types for the TinyGPS example, as this causes issues on the ESP8266 platform 2017-06-06 23:38:38 +02:00
Kristian Sloth Lauszus
f443d2af25 Merge branch 'master' into ESP8266
* master:
  Fixed warning on avr
  Used fixed width integer types, so it is not architecture dependent
  Explicit cast millis() and micros() to uint32_t, as it is uint64_t on the Arduino 101
  Fix millis() and micros() rollover bug
2017-06-06 17:28:19 +02:00
Kristian Sloth Lauszus
18a36f8627 Split variable to prevent warnings on the ESP8266 platform
See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/230952435#L1149
2017-05-11 17:55:13 +02:00
Kristian Sloth Lauszus
14fec8dab8 Merge branch 'master' into ESP8266
* master:
  Update MIDI driver v0.3.2
  Fix missing unsigned comparison.
  Release version 1.3.0
  Added intel_arc32 to PlatformIO platforms
  Fixed type in waitingForConnection variable and set it to false when pairing
  Use descriptor length in order to advance the buffer when parsing the descriptors
2017-05-11 00:12:30 +02:00
Kristian Sloth Lauszus
9162d13f77 Merge branch 'master' into rollover
* master:
  Update MIDI driver v0.3.2

# Conflicts:
#	examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino
#	examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino
#	examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino
#	examples/USBH_MIDI/bidirectional_converter/bidirectional_converter.ino
#	usbh_midi.cpp
#	usbh_midi.h
2017-03-02 11:47:04 +01:00
Yuuichi Akagawa
43f423e15d Update MIDI driver v0.3.2 2017-02-26 23:01:08 +09:00
Kristian Sloth Lauszus
3952d900ff Reset the watchdog timer on the ESP8266
See: https://github.com/felis/USB_Host_Shield_2.0/pull/263#issuecomment-279222338
2017-02-14 00:27:35 +01:00
Kristian Sloth Lauszus
2f46665ee4 Fixed warning on avr
See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/200893091
2017-02-12 20:43:26 +01:00
Kristian Sloth Lauszus
5ba28d186f Used fixed width integer types, so it is not architecture dependent 2017-02-12 17:14:01 +01:00
Kristian Sloth Lauszus
42948831ce Explicit cast millis() and micros() to uint32_t, as it is uint64_t on the Arduino 101 2017-02-12 16:58:14 +01:00
Kristian Sloth Lauszus
6fb48f48e4 Fix millis() and micros() rollover bug
Also replace long with int32_t, so it is not architecture dependent
2017-02-12 15:10:07 +01:00
Yuuichi Akagawa
9b4dd2dcfb Fix missing unsigned comparison. 2017-02-12 22:02:00 +09:00
Kristian Sloth Lauszus
276c7a332a millis() is 64-bits on the Arduino/Genuino 101
See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/198814525
2017-02-06 14:04:33 +01:00
Yuuichi Akagawa
a69979a7ea Fix type mismatch warning 2016-04-27 00:52:39 +09:00
Yuuichi Akagawa
f369e7c500 update MIDI driver v0.3.1 2016-04-26 23:44:07 +09:00
Kristian Sloth Lauszus
c2a0c98d71 Disable some more warnings in the MIDI examples 2016-04-24 02:37:34 +02:00
Kristian Sloth Lauszus
738adc67f6 Fixed some warnings in the MIDI examples 2016-04-24 02:02:33 +02:00
Kristian Sloth Lauszus
51dde0252e Fixed error=parentheses warning 2016-04-19 17:27:12 +02:00
Kristian Sloth Lauszus
14021813ef Fix some more unused-but-set-variable warnings
And autoformat some of the examples
2016-04-19 17:12:10 +02:00
Kristian Sloth Lauszus
2ab25f0382 Fix unused-but-set-variable warning 2016-04-19 17:03:42 +02:00
Kristian Sloth Lauszus
00658d60eb Fixed typo 2016-04-19 11:48:51 +02:00
Kristian Sloth Lauszus
854fb80e08 Autoformat USBHIDMultimediaKbd example
No code change
2016-04-19 11:34:04 +02:00
Kristian Sloth Lauszus
5faa2435c1 Merge pull request #221 from HakanL/master
Add HIDcomposite class and example for multimedia keyboards
2016-04-19 11:31:39 +02:00
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
Hakan Lindestaf
83a52b5063 Fixed tab/space and added comments 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
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
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
Yuuichi Akagawa
8aeb975fac added MIDI host class driver 2016-03-21 23:35:40 +09: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
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
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
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
607932b437 Added missing include in the Xbox One example 2015-07-07 09:58:30 +02:00