mylib
Dependents: robocon2017mbed_control_R
Fork of MyLib by
Revision 13:b375df74762c, committed 2017-10-27
- Comitter:
- kikoaac
- Date:
- Fri Oct 27 07:27:45 2017 +0000
- Parent:
- 12:9b31ab2a6ce2
- Commit message:
- offset;
Changed in this revision
| Nunchuck/Nunchuck.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Nunchuck/Nunchuck.h Tue Oct 24 15:36:42 2017 +0000
+++ b/Nunchuck/Nunchuck.h Fri Oct 27 07:27:45 2017 +0000
@@ -30,7 +30,12 @@
offsetX = 0;
offsetY = 0;
offset = false;
+ for(int i = 0 ; i< 10;i++){
+ getdata();
+ wait(0.01);
+ }
wait(0.2);
+
//for(int i = 0;i<20;i++){
offsetX = (char)analogx();
offsetY = (char)analogy();
