Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: robocon2017mbed_contoroler_L2
Fork of MyLib by
Revision 2:7b7821addb45, committed 2017-05-11
- Comitter:
- gaku_sigu
- Date:
- Thu May 11 07:10:17 2017 +0000
- Parent:
- 1:c75100913a65
- Child:
- 3:e7a900958f54
- Commit message:
- ????????????????
Changed in this revision
| Nunchuck/Nunchuck.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Nunchuck/Nunchuck.cpp Thu May 11 01:38:34 2017 +0000
+++ b/Nunchuck/Nunchuck.cpp Thu May 11 07:10:17 2017 +0000
@@ -32,15 +32,8 @@
wait(0.01);
if (I2C::read(ADDR, data, sizeof(data)) == 0)
{
- for(int i = 0; i < 6; ++i) {
+ for(int i = 0; i < 6; ++i)
data[i] = (data[i] ^ 0x17) + 0x17;
- }
-
- /*
- data[2] <<= 2;
- data[3] <<= 2;
- data[4] <<= 2;
- */
}
}
}
