Commit graph

331 commits

Author SHA1 Message Date
Kristian Lauszus
e9bd896ca2 Added support for the PS4 controller via Bluetooth 2014-01-10 17:44:51 +01:00
Kristian Lauszus
1f33f2bd08 Renamed getStatusString() to printStatusString() 2014-01-04 14:14:22 +01:00
Kristian Lauszus
257c96f5c1 Can now turn LED off by calling setLedOn(OFF) for all controllers
Also renamed all enums, so they does not conflict with user code that easily
2014-01-04 13:43:49 +01:00
Kristian Lauszus
f676812f84 Code for the Wii IR camera needs to be activated in settings.h now
Also cleaned up README.md a bit
2013-12-30 16:19:34 +01:00
Andrew J. Kroll
5426cb1fb6 Fix annoying warning generated on newer GCC versions. 2013-12-29 22:55:03 -05:00
Andrew J. Kroll
f789c65c02 fix demos 2013-12-19 13:01:48 -05:00
Oleg Mazurov
94ac0b986a dec18-1 2013-12-18 15:06:06 -07:00
Oleg Mazurov
e0b9ea89cb dec18 2013-12-18 15:04:13 -07:00
Kristian Lauszus
e92dd0d03d Typo 2013-12-08 17:42:14 +01:00
Kristian Lauszus
8072e6f1bb Added max_LCD example
Copy of: https://github.com/arduino/Arduino/blob/ide-1.5.x/libraries/LiquidCrystal/examples/HelloWorld/HelloWorld.ino
2013-12-07 00:34:33 +01:00
Kristian Lauszus
843eec8ba6 Print when connected and disconnected from accessory 2013-12-06 23:27:26 +01:00
Kristian Lauszus
aa235ac3ed Macros were renamed in f38a0f6515 2013-12-05 07:41:57 +01:00
Kristian Lauszus
d168409b04 Included spi4teensy3.h in BTHID example
This should really be fixed in the Arduino IDE
2013-12-05 07:32:32 +01:00
Kristian Lauszus
75637bab31 Merge branch 'master' into xxxajk 2013-12-05 07:26:41 +01:00
Andrew J. Kroll
edf9682923 Support spi4teensy3 in all examples automatically 2013-12-04 21:56:06 -05:00
Andrew J. Kroll
95d133b919 Merge 2013-12-04 18:51:06 -05:00
Andrew J. Kroll
e18eb57752 fix all warnings for ARM, fix a few small bugs 2013-12-04 18:40:23 -05:00
Kristian Lauszus
ab9338a55e Added missing semicolon
Needed for STM32
2013-12-01 16:03:11 +01:00
Kristian Lauszus
a31cc42585 Use reinterpret_cast to cast from BTHID to HID class, so it can be used in the parser 2013-11-25 17:39:59 +01:00
Kristian Lauszus
eed70438be Set default pin to “0000” 2013-11-25 02:20:57 +01:00
Kristian Lauszus
4099314100 Can now set the LEDs on a keyboard 2013-11-25 01:45:24 +01:00
Kristian Lauszus
aba004b047 Use the HIDBoot class to parse the incoming data 2013-11-24 23:51:45 +01:00
Kristian Lauszus
f783b97cb9 Initial commit for BTHID library
To see incoming data uncomment PRINTREPORT in BTHID.cpp
2013-11-24 21:55:15 +01:00
Kristian Lauszus
0e0b48b3c8 Use the submodules in the makefile 2013-11-24 16:03:52 +01:00
Kristian Lauszus
191cdf9e2c Updated testusbhostFAT example and submodules 2013-11-24 16:03:28 +01:00
Kristian Lauszus
a340b81100 Commented out hub instance by default 2013-11-24 15:17:19 +01:00
Kristian Lauszus
b22f52895c Check if PS3Connected is true instead 2013-11-24 15:15:46 +01:00
Kristian Lauszus
0de2c0e48b Arduino can now write data to the Android phone as well 2013-11-17 18:57:03 +01:00
Kristian Lauszus
dd39e62a69 Added new line 2013-11-15 23:30:16 +01:00
Kristian Lauszus
99d2e4cb0d Updated comment 2013-11-15 23:20:15 +01:00
Kristian Lauszus
5b793db3e3 Can now call setLedOff without any argument, to turn all LEDs off 2013-11-15 23:19:10 +01:00
Kristian Lauszus
87cb83276b Updated formatting 2013-11-15 19:05:25 +01:00
Kristian Lauszus
b50919b077 Format PS3 examples 2013-11-12 19:45:06 +01:00
Kristian Lauszus
764e74c94c Can now disconnect a wireless controller 2013-11-11 00:43:18 +01:00
Kristian Lauszus
52858d502b Added delay before bus reset and renamed some variables and cleanup example 2013-11-11 00:38:56 +01:00
Kristian Sloth Lauszus
3c3b8ec986 Reformat ArduinoBlinkLED example 2013-10-30 15:21:50 +01:00
Kristian Sloth Lauszus
81f0978cc8 Update all submodules 2013-10-21 20:25:28 +02:00
Kristian Sloth Lauszus
d5550f51dc Merge branch 'xxxajk' of github.com:felis/USB_Host_Shield_2.0 into xxxajk
Conflicts:
	examples/board_qc/board_qc.ino
2013-10-21 20:12:47 +02:00
Kristian Sloth Lauszus
f8c0adc107 Wait for serial port to connect in example - needed for Leonardo, Teensy and other boards with built-in USB CDC serial connection 2013-10-21 19:58:03 +02:00
Andrew J. Kroll
18e401e55a reformat board_qc so it is not ugly, and follows industry standards 2013-10-21 13:52:35 -04:00
Andrew J. Kroll
13d625e6be Merge branch 'xxxajk' of github.com:felis/USB_Host_Shield_2.0 into xxxajk 2013-10-21 13:49:11 -04:00
Andrew J. Kroll
fcd99a1fed fixes to board quality check program 2013-10-21 13:48:53 -04:00
Kristian Sloth Lauszus
d20ae89818 Only calculate angle when it is needed 2013-10-21 18:41:47 +02:00
Kristian Sloth Lauszus
45c1297a91 Removed all unnecessary includes since there is no need to do that anymore
Also renamed all example extensions to .ino
2013-10-02 00:49:46 +02:00
Andrew J. Kroll
8efdf711fd Fix example, and reformat 2013-10-01 14:50:09 -04:00
Andrew J. Kroll
5656fa9b6d Add example for composite mouse/keyboard, also supports single units on a hub, or embedded hub. 2013-09-29 16:12:34 -04:00
Andrew J. Kroll
372e37e34f Update from head 2013-09-23 18:52:29 -04:00
Andrew J. Kroll
4bb0011713 Update from head 2013-09-23 18:48:44 -04:00
Andrew J. Kroll
f0f83ec501 sync example updates 2013-09-23 04:55:43 -04:00
Oleg Mazurov
254ff72e55 Scale example added 2013-09-06 17:03:19 -06:00
Andrew J. Kroll
42a1be314f Update README.md 2013-09-02 04:19:55 -04:00
Andrew J. Kroll
0f0dd90ef8 Add RTClib 2013-09-02 04:19:31 -04:00
Andrew J. Kroll
5dcc65cab9 updates from head 2013-09-02 04:09:49 -04:00
Andrew J. Kroll
d46f251345 Update testusbhostFAT 2013-09-02 04:04:28 -04:00
Oleg Mazurov
900ba05c9b fixed PrintHex in kbd example 2013-08-14 14:08:43 -06:00
Kristian Sloth Lauszus
1f8322d54f Some dongles have a hub inside 2013-08-13 21:31:52 +02:00
Kristian Sloth Lauszus
c5684b8dfa fixes #61 2013-08-13 12:54:03 +02:00
Oleg Mazurov
221fa78078 power control and stuff 2013-08-09 15:45:27 -06:00
Andrew J. Kroll
3d16d6f9d6 testusbhostFAT Updates 2013-08-09 02:27:34 -04:00
Andrew J. Kroll
458c07d8c7 Merge remote branch 'origin' into xxxajk 2013-08-09 00:19:09 -04:00
Andrew J. Kroll
0169e99af7 Updates to testusbhostFAT 2013-08-09 00:18:25 -04:00
Andrew J. Kroll
f93c9d8a9a merge testusbhostFAT library updates 2013-08-09 00:10:13 -04:00
Kristian Sloth Lauszus
2ff619dcc7 Forgot to create hub instance 2013-07-18 20:52:06 +02:00
Kristian Sloth Lauszus
f274fb7fee Renamed library 2013-07-18 20:35:23 +02:00
Kristian Sloth Lauszus
d0ec18ab44 Fixed disconnect problem when using the old Wiimote with the external MotionPlus extension
Now also updates the batteryLevel when getBatteryLevel is called
2013-07-18 19:43:21 +02:00
Kristian Sloth Lauszus
7ff9dea66b Added support for original Xbox controller 2013-07-18 17:52:23 +02:00
Kristian Sloth Lauszus
759d3b6977 Updated example to show how to use attachOnInit
Also removed whitespace PS3Multi example
2013-07-14 01:28:47 +02:00
Oleg Mazurov
06741b5a03 changed Notify to E_Notify 2013-06-19 20:20:08 -06:00
Oleg Mazurov
a8bc10f7f5 message 2013-06-18 17:01:29 -06:00
Kristian Sloth Lauszus
da0622a5f1 Uploaded newest testusbhostFAT code 2013-06-18 23:24:20 +02:00
Andrew J. Kroll
e01df49bf3 refactor entire library for hex printing 2013-06-17 15:37:09 -04:00
Oleg Mazurov
ca0b0588d1 commit message 2013-06-11 21:14:16 -06:00
Oleg Mazurov
c979798fcc commit message 2013-06-11 21:12:45 -06:00
Oleg Mazurov
261e5f1bd2 commit 2013-06-11 21:11:43 -06:00
Kristian Sloth Lauszus
d27ca9822d Fixed path to libraries 2013-06-10 20:32:09 +02:00
Kristian Sloth Lauszus
2f04cc56ac Create instances dynamically 2013-06-10 00:07:14 +02:00
Kristian Sloth Lauszus
d3b2324b1e Added link to master makefile 2013-06-09 20:24:44 +02:00
Kristian Sloth Lauszus
5df4fd56f6 Added note about compatible Arduinos 2013-06-09 19:53:22 +02:00
Kristian Sloth Lauszus
4c5df3f56a Updated Readme 2013-06-09 19:45:45 +02:00
Kristian Sloth Lauszus
fb28094a30 Added the master makefile as a submodule as well 2013-06-09 19:32:27 +02:00
Kristian Sloth Lauszus
f69278c2b9 Fixed path to libraries 2013-06-09 19:26:43 +02:00
Kristian Sloth Lauszus
b528925d9e Uploaded Andrew's example code 2013-06-09 19:22:24 +02:00
Oleg Mazurov
2a43fde0ff Merge pull request #52 from weizenspreu/master
Event for changed control keys
2013-05-16 14:44:30 -07:00
Kristian Sloth Lauszus
216fce8d95 Controller is default 0
This will ensure compatible with the other controllers
2013-05-16 22:41:52 +02:00
Kenneth Newwood
a669933c44 Added KeyboardReportParser::OnControlKeysChanged(before, after) to be able to react on control key presses and enhanced the HID keyboard example. 2013-05-16 20:45:26 +02:00
Kristian Sloth Lauszus
3557dac88d Updated comment 2013-05-07 15:50:38 +02:00
Kristian Sloth Lauszus
e6a557870b The SPP Class now inherit from the Arduino Stream library 2013-05-07 00:06:49 +02:00
Oleg Mazurov
9813e7a565 Merge branch 'master' of https://github.com/felis/USB_Host_Shield_2.0 2013-04-30 14:07:55 -06:00
Oleg Mazurov
554487c849 Leonardo Compatibility patch by weizenspreu 2013-04-30 14:06:36 -06:00
Kristian Sloth Lauszus
9af835e8fe Battery level no longer return battery level in percentage 2013-04-15 18:36:47 +02:00
Oleg Mazurov
2d3b73f9a7 Merge branch 'master' of https://github.com/felis/USB_Host_Shield_2.0 2013-04-03 13:20:50 -06:00
Oleg Mazurov
84cff61f49 fixed printhex 2013-04-03 13:14:25 -06:00
Oleg Mazurov
e1a11e9d5c fixed printhex 2013-04-03 13:08:24 -06:00
Kristian Sloth Lauszus
7ceeb2b2f5 Reserve 200 bytes for string and print status string 2013-04-03 20:36:23 +02:00
Oleg Mazurov
ed04516c18 deleted pde versions 2013-04-03 12:13:24 -06:00
Oleg Mazurov
85289c70f4 fixed PrintHex in USBHIDBootKbd example 2013-04-03 11:56:36 -06:00
Oleg Mazurov
7691a91a4e fixed board_qc to Notify() syntax 2013-04-03 11:40:33 -06:00
Kristian Sloth Lauszus
8ca3ab8fd1 Updated XBOXUSB library so it doesn't conflict with the other libraries 2013-02-17 01:03:32 +01:00
Kristian Sloth Lauszus
4d836ecff2 Fixed typo 2013-02-04 09:33:07 +01:00
Kristian Sloth Lauszus
b97caf84de Added SPPMulti example 2013-02-04 08:36:52 +01:00
Kristian Sloth Lauszus
be920c507f Added comment 2013-02-04 07:25:28 +01:00
Kristian Sloth Lauszus
355ca892eb Added support for Wii U Pro Controller 2013-02-02 22:14:01 +01:00
Kristian Sloth Lauszus
86a3392f6a Fixed support for multiple Wiimotes 2013-01-31 21:58:13 +01:00
Kristian Sloth Lauszus
d2bb7b8338 Don't print values if it's a Navigation controller 2013-01-28 00:50:44 +01:00
Kristian Sloth Lauszus
391f5ece4d Fixed conflict between analog buttons and digital buttons 2013-01-27 22:02:33 +01:00
Kristian Sloth Lauszus
0cd5102056 Only print if the IR camera is actually seeing something 2013-01-24 00:21:59 +01:00
Kristian Sloth Lauszus
fed2a0ad07 Fixed comments 2013-01-23 22:47:47 +01:00
Kristian Sloth Lauszus
bb8bdab3ba Track up to four objects using the IR camera
The state of the Wiimote can now also be read including the battery
level
2013-01-23 22:28:40 +01:00
Kristian Sloth Lauszus
ac4fc92ea7 The library now also support multiple Wiimotes 2013-01-20 22:46:04 +01:00
Kristian Sloth Lauszus
47ab932c0f Don't print R2 and right joystick if a Navigation controller is connected 2013-01-20 22:30:53 +01:00
Kristian Sloth Lauszus
0397a3f088 Added example to show how to use multiple PS3 controller with the library 2013-01-20 18:18:46 +01:00
Kristian Sloth Lauszus
aafb1d6491 Don't print the right joystick if it's a Navigation controller 2013-01-20 18:14:15 +01:00
Kristian Sloth Lauszus
4e7c5ce51e Addd check for WIICAMERA 2013-01-17 00:47:38 +01:00
Kristian Sloth Lauszus
3acafa2634 Minor edit 2013-01-17 00:13:09 +01:00
Kristian Sloth Lauszus
eb088895f5 Added support for the IR Camera inside the Wiimote
Thanks to Allan Glover: https://github.com/Engr-AllanG
2013-01-17 00:07:56 +01:00
Kristian Sloth Lauszus
33698b0091 Fixed issue that caused setLed to not respond and check batterylevel 2013-01-06 03:32:13 +01:00
Kristian Sloth Lauszus
db37672e2c Added link to blog post 2012-12-29 14:15:40 +01:00
Kristian Sloth Lauszus
7a823ca71c The Xbox wireless receiver is now supported 2012-12-28 06:37:42 +01:00
Kristian Lauszus
4e10fd3046 Added Android source to github 2012-10-17 00:43:34 +02:00
Kristian Lauszus
d68c896241 Fixed comment 2012-10-11 21:58:19 +02:00
Kristian Lauszus
48f3153c3b Updated example sketch to work with pairing 2012-10-07 20:16:09 +02:00
Kristian Lauszus
01c909c2cc Fixed comment 2012-09-19 23:20:49 +02:00
Kristian Lauszus
09f19de0d3 Fixed conflict between PS3USB and PS3BT 2012-09-09 22:13:52 +02:00
Kristian Lauszus
dfa329a2b9 Added support for the Motion Plus extension 2012-08-23 23:10:12 +02:00
Kristian Lauszus
c138bf0492 Added support for the Nunchuck controller 2012-08-22 23:41:38 +02:00
Kristian Lauszus
7eb2f39597 Added getPitch and getRoll 2012-08-21 17:36:37 +02:00
Kristian Lauszus
a3ad5f2cdd Added support for Wiimote 2012-08-21 14:31:11 +02:00
Kristian Lauszus
c72c9a4578 Removed L2 and R2 from digitalOutput string 2012-08-09 21:51:29 +02:00
Kristian Lauszus
9e51675c18 Added note about SRAM and FLASH
You will need a Arduino Mega 1280/2560 to run the sketch
2012-08-09 21:34:51 +02:00
Kristian Lauszus
459c5b7984 Edited sketch text 2012-08-08 21:28:25 +02:00
Kristian Lauszus
856b027e7b Removed whitespace 2012-08-08 20:21:35 +02:00
Kristian Lauszus
9fe088f39d Fixed typo 2012-08-08 19:59:43 +02:00
Kristian Lauszus
c8e89283d5 Reorganized examples 2012-08-08 19:27:32 +02:00
Kristian Lauszus
961a5005dc Save all strings in string buffer to prevent the dongle from overflowing 2012-08-08 19:23:03 +02:00
Kristian Lauszus
5ce7cc2b55 Updated example for RFCOMM/SPP 2012-08-08 19:22:47 +02:00
Kristian Lauszus
76020527f8 Updated to work with BTD instance 2012-08-08 19:21:40 +02:00
Kristian Lauszus
8d3b8b2adb Added BTD example
Shows that one can now use PS3BT and SPP at the same time
2012-08-04 20:10:00 +02:00
Kristian Lauszus
b967d610c0 Fixed rumble issue in example sketch 2012-08-03 02:42:48 +02:00
Kristian Lauszus
ea575c3999 Added ability to store strings in flash 2012-07-31 22:53:32 +02:00
Oleg Mazurov
9a58f9b94d RFCOMM 2012-07-26 17:02:12 -06:00
Oleg Mazurov
1c5553e7bf fixing conflict 2012-07-26 16:59:41 -06:00
Oleg Mazurov
6f456f1c12 Merge branch 'dev' of github.com:felis/USB_Host_Shield_2.0 into dev 2012-07-26 16:32:54 -06:00
Kristian Lauszus
85af55e0aa Added delay in example sketch
Some devices resets when it tries to send several bytes in each loop
2012-07-26 21:34:06 +02:00
Oleg Mazurov
f7b967bcfb Merge branch 'dev' of github.com:felis/USB_Host_Shield_2.0 into dev 2012-07-26 13:05:13 -06:00
Kristian Lauszus
7b1f2df212 Now working with Windows 2012-07-26 21:03:06 +02:00
Oleg Mazurov
a0593410c9 Merge branch 'dev' of github.com:felis/USB_Host_Shield_2.0 into dev 2012-07-24 15:49:00 -06:00
Kristian Lauszus
02b2deb6cd Moved example sketch to example folder 2012-07-24 22:25:04 +02:00
Kristian Lauszus
9d49f803fa Added support for the Xbox 360 controller 2012-07-17 18:41:05 +02:00
Kristian Lauszus
d251a48fb1 Added getTemperature() 2012-06-01 18:47:15 +02:00
Kristian Lauszus
9d6eb2d69b Created same syntax for Move controller 2012-05-28 21:53:20 +02:00
Kristian Lauszus
a53b333660 Added USB version of the library
After several request I decided to port the library to a USB version
2012-05-26 01:48:12 +02:00
Kristian Lauszus
d638d726e2 Several minor adjustments 2012-05-26 01:46:18 +02:00
Kristian Lauszus
b66a8f214c Added small delay in example sketch
Also fixed qNextPollTime
2012-05-25 19:59:00 +02:00
Oleg Mazurov
f2dd1215bd Logitech Extreme 3D Pro Joystick report parser added 2012-05-08 22:33:00 -06:00
Oleg Mazurov
c16a160243 Merge branch 'master' of github.com:felis/USB_Host_Shield_2.0 2012-05-08 14:38:56 -06:00
Oleg Mazurov
89ff7d24ed added delays in Get Config 2012-05-08 14:38:04 -06:00
Kristian Lauszus
d25414948f Added 360 degrees resolution of angle calculated from accelerometer 2012-04-24 22:49:34 +02:00
Kristian Lauszus
98cf17c947 Added 360 resolution 2012-04-24 01:35:43 +02:00
Kristian Lauszus
da6eb99a2f Minor revision 2012-04-12 23:15:18 +02:00
Kristian Lauszus
f6aef14619 Fixed lowercase 2012-04-11 02:18:35 +02:00
Kristian Lauszus
79dd1d6952 Minor edit 2012-04-11 01:48:46 +02:00
Oleg Mazurov
3d068a0637 HID joystick support and examples 2012-04-03 14:09:04 -06:00
Kristian Lauszus
e63013cc62 Added better example and set delay one again
It seems like my Arduino Uno is faster, so the delay had to be increased
2012-03-26 16:25:24 +02:00
Kristian Lauszus
fc0a62038c Added ArduinoBlinkLED ADK Example
The code for the Android application is heavily based on this guide:
http://allaboutee.com/2011/12/31/arduino-adk-board-blink-an-led-with-you
r-phone-code-and-explanation/ by Miguel
2012-03-25 16:28:50 +02:00
Kristian Lauszus
0899357deb Updated header 2012-03-04 02:38:50 +01:00
Kristian Lauszus
b8a17e62bb Added PS3 BT support 2012-03-02 08:34:29 +01:00
Oleg Mazurov
702897bd5b acm bug fix 2012-02-29 12:37:16 -07:00
Oleg Mazurov
2c728cd7dd Arduino-1.0 compatibility added 2012-01-10 12:49:42 -07:00
Oleg Mazurov
6280543eda FTDI example 2011-11-30 07:40:07 -07:00
Oleg Mazurov
2d7d482914 ADK barcode scanner interface example added 2011-11-04 21:37:26 -06:00
Oleg Mazurov
a97fb4bbda PID 0609 added to prolific driver 2011-10-19 17:33:15 -06:00
Oleg Mazurov
d8596b0077 HID support added 2011-10-11 12:37:54 -06:00
Oleg Mazurov
f1a569f18c ADK terminal demos added 2011-09-10 20:13:18 -06:00
Oleg Mazurov
96d506bf24 worked around 2560 bootloader '3 bangs' bug 2011-07-20 20:35:20 -06:00
Oleg Mazurov
993c9de81e Merge branch 'dev' 2011-07-06 20:20:11 -06:00
Oleg Mazurov
0244032d0d adk final 2011-07-06 19:48:43 -06:00
Oleg Mazurov
a0671d92d3 GPS examples added 2011-07-01 20:31:48 -06:00
Oleg Mazurov
8130e5618e Teensy support added to avrpins.h, usbhost.h 2011-06-26 21:27:44 -06:00
Oleg Mazurov
568f00b65b PL2303 Xbee terminal added 2011-06-24 11:49:19 -06:00
Oleg Mazurov
915542ff59 minor update 2011-06-22 22:45:48 -06:00
Oleg Mazurov
05726f3ed1 first release 2011-06-22 11:41:22 -06:00