Commit graph

68 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
2ebc8129a7 Show users how to easily save a lot of program space if extensions are not used 2015-04-16 20:20:27 +02:00
Kristian Sloth Lauszus
9426e4192d Updated some variables names and updated some debug messages 2015-04-16 20:19:33 +02:00
Kristian Sloth Lauszus
7334f7e9a4 Changed some variable names and simplified the way the weight is calculated
There was actually a bug, as it will return 0 if wiiBalanceBoardRaw[pos] is exactly the same as wiiBalanceBoardCal[1][pos]
2015-04-16 19:45:03 +02:00
Kristian Sloth Lauszus
d2511df4a1 Move functions into .cpp file 2015-04-16 17:00:07 +02:00
Kristian Sloth Lauszus
7acf598a59 Convert Wii Balance Board readings into kg 2015-04-16 16:55:35 +02:00
Kristian Sloth Lauszus
9cb31799a8 Fix initialisation of extension bug in status report.
The first status report were missed because checkExtension had to be true.
Should fix bug reported here: http://blog.tkjelectronics.dk/2012/08/wiimote-added-to-usb-host-library/#comment-500635
2015-04-16 16:50:08 +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
03e0ec5d6d Print values properly 2015-04-16 02:15:52 +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 Lauszus
285b21cdbc Check HCI Handle using function in BluetoothService class 2014-09-09 16:38:42 -07:00
Kristian Lauszus
106aff6411 Call registerBluetoothService in BluetoothService constructor
I needed to move the BluetoothService class down after the BTD class in order for it to work
2014-09-09 16:32:46 -07:00
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