Commit graph

359 commits

Author SHA1 Message Date
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
Kristian Sloth Lauszus
5ee8ee9325 avr/dtostrf.h should only be included if Due is used 2015-05-23 16:03:50 +02:00
Kristian Sloth Lauszus
36056a4039 Renamed Keyboard instance to HidKeyboard, so it works on the Due as well 2015-05-23 15:49:46 +02:00
Kristian Sloth Lauszus
44d3b4a322 Added missing header needed for the Due 2015-05-23 15:46:34 +02:00
Michi302
4df0d9db25 Corrected spelling mistake "Purble" to "Purple" 2015-05-17 18:52:25 +02:00
Kristian Sloth Lauszus
7095b58896 Merge pull request #146 from felis/WiiBalanceBoard
Added support for Wii balance board
2015-04-25 01:27:16 +02:00
Kristian Sloth Lauszus
cbea36f76f Fixed formatting
No new code added
2015-04-22 15:48:43 +02:00
Kristian Sloth Lauszus
5053e8dfae Don't use deprecated prog_ macro
Fixes: #147
2015-04-22 15:48:18 +02:00
Kristian Sloth Lauszus
bce1541026 Fixed: warning: variable 'rcode' set but not used 2015-04-22 15:41:17 +02:00
Kristian Sloth Lauszus
e4c581c991 The is no need for Wii calibration flag to have its own variable 2015-04-20 23:39:57 +02:00
Kristian Sloth Lauszus
7acf598a59 Convert Wii Balance Board readings into kg 2015-04-16 16:55:35 +02:00
Kristian Sloth Lauszus
e555195e42 Print raw Wii Balance Board values in example 2015-04-16 02:26:18 +02:00
Kristian Sloth Lauszus
b1902b2a55 Initial support for Wii Balance Board
Still need to convert readings into something meaningful
2015-04-16 01:57:00 +02:00
Kristian Sloth Lauszus
127273aad3 Merge branch 'SPI' into Galileo 2015-04-07 15:08:19 +02:00
Kristian Sloth Lauszus
feb7112517 Merge branch 'master' into SPI
Conflicts:
	examples/testusbhostFAT/testusbhostFAT.ino
2015-04-07 15:08:02 +02:00
Kristian Sloth Lauszus
54aef653fe Update master makefile 2015-04-05 00:55:26 +02:00
Kristian Sloth Lauszus
d79de9d704 Update makefile to work with newest version of Arduino 2015-04-05 00:46:43 +02:00
Kristian Sloth Lauszus
2eea8d4112 Update submodules 2015-04-05 00:22:36 +02:00
Kristian Sloth Lauszus
9e32aef86c Replace boolean with bool 2015-04-05 00:18:52 +02:00
Kristian Sloth Lauszus
67a7a66d3d Updated to newest version of testusbhostFAT
Fixes #143
2015-04-05 00:17:51 +02:00
Kristian Sloth Lauszus
aba96e76d1 Merge branch 'guruthree-master'
# Conflicts:
#	README.md

Closes #135
2015-03-25 01:19:06 +01:00
Andrew J. Kroll
4230ccefac XR_terminal example INO renamed 2015-03-19 15:01:06 -04:00
Kristian Sloth Lauszus
73ce976198 Merge branch 'SPI' into Galileo
Conflicts:
	Usb.h
	avrpins.h
	usbhost.h
2015-03-19 16:36:51 +01:00
Kristian Sloth Lauszus
cc14152c54 Slow SPI devices like the Galileo might actually read it as stabilised in the first go 2015-03-19 16:31:29 +01:00
Kristian Sloth Lauszus
585b357ee5 Merge branch 'master' into SPI
Conflicts:
	settings.h
	usbhost.h
2015-03-19 15:34:07 +01:00
Andrew J. Kroll
2301a07cfe XR21B1411 - add example 2015-03-18 05:41:20 -04:00
Andrew J. Kroll
bc8000f782 manual merge 2015-03-12 18:56:15 -04:00
Kristian Sloth Lauszus
2dfca7d936 Update submodules 2015-03-03 20:00:28 +01:00
Kristian Sloth Lauszus
73f791c859 Merge branch 'SPI' into Galileo
Conflicts:
	avrpins.h
	settings.h
	usbhost.h
2015-03-03 19:57:35 +01:00
Kristian Sloth Lauszus
a9dd112502 Update submodules 2015-03-03 19:10:46 +01:00
Kristian Sloth Lauszus
22d82ecd0a SPI library was added twice after merge - see: c39e8a180c 2015-03-03 19:08:39 +01:00
Kristian Sloth Lauszus
c39e8a180c Merge branch 'master' into SPI
Conflicts:
	examples/Bluetooth/SPPMulti/SPPMulti.ino
	examples/adk/ArduinoBlinkLED/ArduinoBlinkLED.ino
	settings.h
	usbhost.h
2015-03-03 18:56:59 +01:00
Kristian Sloth Lauszus
881c4df046 Merge branch 'master' into dev
Conflicts:
	BTD.h
	BTHID.h
	PS3BT.h
	SPP.h
	Wii.h
2015-02-24 01:28:28 +01:00
Kristian Sloth Lauszus
86cb7f38ab Fixed some formatting 2015-02-22 18:27:30 +01:00
Kristian Sloth Lauszus
6047962d60 Merge branch 'xxxajk'
Conflicts:
	XBOXUSB.h
	examples/ftdi/USBFTDILoopback/USBFTDILoopback.ino
	hiduniversal.h
	settings.h
	usbhost.h
2015-02-22 18:25:22 +01:00
Andrew J. Kroll
bd8c8e7404 Fix use of "bool" so ARM compiles correctly 2015-02-19 03:14:39 -05:00
Fred
9979e50426 LeftTrigger/RightTrigger => L2/R2 for consistency 2015-02-15 19:47:06 +00:00
Fred
519e2a5309 cleanup 2015-02-15 17:56:20 +00:00
Fred
7c475c91e0 Xbox ONE Controller support 2015-02-14 11:09:24 +00: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
37d87903fa Updated USBFTDILoopback example to compile after 2224dd96cb 2014-09-29 16:50:02 -07:00
Andrew J. Kroll
80230570cc fix board_qc for MIPS so that it includes the correct SPI library first 2014-09-25 23:23:10 -04:00
Andrew J. Kroll
b51131750d fix board_qc for MIPS 2014-09-25 23:17:18 -04:00
Oleg Mazurov
64e3f92700 gh sync 2014-09-22 17:03:16 -06:00
Kristian Lauszus
961bf1c4ae Update submodules 2014-09-10 00:27:55 -07:00
Kristian Lauszus
840d5d67d4 Merge branch 'xxxajk' 2014-09-10 00:22:29 -07:00
Kristian Lauszus
36bdfb3a53 Merge branch 'master' into SPI 2014-08-24 17:31:24 -07:00
Kristian Lauszus
fdd104d3d0 Merge branch 'master' into Galileo 2014-08-24 17:29:13 -07:00
Kristian Lauszus
980109f756 Disable some of the functions in PS3BT and Wii library examples so it always compile on Arduino Uno 2014-08-24 17:26:49 -07:00
Kristian Lauszus
8cf054cd61 Disable debugging again and updated submodules 2014-08-24 00:37:46 -07:00
Oleg Mazurov
230c26eeed 20140823 2014-08-23 17:08:43 -06:00
Andrew J. Kroll
900af96c9c Merge master 2014-08-04 06:15:19 -04:00