Commit graph

57 commits

Author SHA1 Message Date
Kristian Lauszus
25c8d87ba2 Added several variables to BluetoothService class
Also moved attachOnInit function into BluetoothService class, but this really belong somewhere else
2014-09-02 02:02:17 -07:00
Andrew J. Kroll
d56ed57495 Fix 1 month rollover bug -- Lei Shi found this one in one place, I found the problem all over the library and patched them all. 2014-05-22 23:36:33 -04: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
Andrew J. Kroll
14fda1372c Fix annoying warnings and provide an optimization. 2013-12-29 23:53:24 -05:00
Andrew J. Kroll
f1af9b08ec Janitorial, whitespace fixes. No new code. 2013-12-25 05:09:57 -05:00
Kristian Lauszus
ddaa6f0220 Fixed “comparison between signed and unsigned integer expressions” warning 2013-12-18 23:01:01 +01:00
Andrew J. Kroll
fcaef6f5a2 Merge branch 'xxxajk' of github.com:felis/USB_Host_Shield_2.0 into xxxajk 2013-12-18 15:19:29 -05:00
Andrew J. Kroll
5785115cdb Type fixes, new debug macro, debug bug fixes. 2013-12-18 15:18:28 -05:00
Kristian Lauszus
1ef78c3674 Do not hardcode identifier when disconnecting 2013-12-13 10:38:41 +01:00
Kristian Lauszus
809e80a1b0 Clear and set flags in a more readable way 2013-12-11 09:59:58 +01:00
Kristian Lauszus
ed36d04e7c Move all L2CAP states etc. into BTD.h, so the different drivers does not conflict when used together 2013-12-11 09:29:38 +01:00
Kristian Lauszus
627c390191 Minor 2013-11-25 18:46:10 +01:00
Kristian Lauszus
0bd0078c6d Updated comments 2013-11-12 19:38:18 +01:00
Kristian Lauszus
b08e89a6f9 Updated comment about how to activate serial debugging 2013-11-11 11:48:09 +01:00
Kristian Sloth Lauszus
d20ae89818 Only calculate angle when it is needed 2013-10-21 18:41:47 +02:00
Kristian Sloth Lauszus
40b0436400 Fixed bug when using Wiicamera with new Wiimote with MotionPlus inside 2013-08-13 22:31:51 +02:00
Kristian Sloth Lauszus
84a66bb534 Fixed indent 2013-07-18 19:53:18 +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
2dc817f84a Added attachOnInit
This will allow the user to call a function when the controller is initialized
2013-07-14 00:43:35 +02:00
Andrew J. Kroll
e01df49bf3 refactor entire library for hex printing 2013-06-17 15:37:09 -04:00
Oleg Mazurov
261e5f1bd2 commit 2013-06-11 21:11:43 -06:00
Kristian Sloth Lauszus
48b3ed93f5 Removed all direct calls to serial.print 2013-04-26 23:50:39 +02:00
Kristian Sloth Lauszus
1ca5c28163 Don't keep calling setLedStatus 2013-04-01 17:16:56 +02:00
Kristian Sloth Lauszus
831d18016e Added setLedRaw 2013-04-01 15:38:15 +02:00
Andrew J. Kroll
904f2ff25a Clean up code formatting to industry standards. 2013-03-28 04:46:43 -04:00
Andrew J. Kroll
9b224b9899 port debugging of new files, need to eliminate all serial.print yet. 2013-03-28 04:37:09 -04:00
Kristian Sloth Lauszus
6330f319f3 Fixed problem when using the Motion Plus extension 2013-03-05 18:51:44 +01:00
Kristian Sloth Lauszus
98428ffe47 Forgot break statement 2013-03-02 18:48:45 +01:00
Kristian Sloth Lauszus
1333e9a63b Updated comments to work with Doxygen 2013-02-05 19:51:45 +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
a96c3c4633 Now the XBOXRECV doesn't conflict as well
Also hci_handle is reset when you disconnect
2013-01-28 00:55:01 +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
8ed3fcd3b8 The Wii and PS3 libaries can now be used at the same time 2013-01-27 21:25:50 +01:00
Kristian Sloth Lauszus
bca143a23f Don't change setReportMode when initializing the IR camera 2013-01-24 00:23:09 +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
1cb937b2a1 Moved things around and change a couple of names 2013-01-17 00:47:19 +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
c639a3ee4f Now works with the new Wiimote with Motion Plus Inside 2013-01-10 20:10:16 +01:00
Kristian Lauszus
36044a4356 Minor edit 2012-10-08 17:29:30 +02:00
Kristian Lauszus
90ae685010 Minor edit 2012-10-07 20:34:52 +02:00
Kristian Lauszus
f8b5c46f60 Added debug about inactive Motion Plus 2012-10-07 20:07:48 +02:00
Kristian Lauszus
d445689813 Fixed bug when pairing 2012-10-07 19:44:27 +02:00
Kristian Lauszus
2a6fa135e5 Fixed comment 2012-10-07 19:12:26 +02:00
Kristian Lauszus
940b8e185b Minor edit 2012-10-07 16:24:12 +02:00
Kristian Lauszus
ebb333de9a Now able to pair with Wiimote 2012-10-07 14:50:51 +02:00
Kristian Lauszus
02719f4c92 Added setLedStatus()
This will give some feedback to the user about which extensions is
currently connected
2012-10-06 16:42:00 +02:00
Kristian Lauszus
452ab7491f Fixed getButtonPress 2012-10-04 01:46:38 +02:00
Kristian Lauszus
eceea5e404 Merge pull request #27 from felis/master
Add latest commits to prevent conflicts
2012-10-03 11:04:39 -07:00