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 |
|
Kristian Sloth Lauszus
|
ce7f62e8d9
|
Keep reading the IR camera as well if an extension disconnects
Fixes #234
Also added some debugging code, so this could be detected faster in the future
|
2016-07-02 19:42:32 +02:00 |
|
Kristian Sloth Lauszus
|
eb3a258aa6
|
Remove execute permission from source files
|
2016-04-26 17:00:44 +02:00 |
|
Kristian Sloth Lauszus
|
7e449d2d3a
|
Replaced all double variables with float
|
2015-10-12 13:20:48 +02:00 |
|
Kristian Sloth Lauszus
|
b3303d14fc
|
Set checkBatteryLevel false only when it was actually true
|
2015-04-20 23:40:34 +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
|
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 |
|