mylib
Dependents: robocon2017mbed_control_R
Fork of MyLib by
Diff: Nunchuck/Nunchuck.h
- Revision:
- 13:b375df74762c
- Parent:
- 12:9b31ab2a6ce2
--- 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();