accelerometer og akse

Dependencies:   mbed

Fork of LAB11_Oppgave2 by EL-POM1001

Revision:
1:d4624c8ba9f5
Parent:
0:87a84e072ec7
Child:
2:b3bd4f835893
--- a/main.cpp	Mon Nov 09 13:42:34 2015 +0000
+++ b/main.cpp	Mon Nov 09 13:48:59 2015 +0000
@@ -45,7 +45,6 @@
     i2cBus.write(NUNCHUK_8BIT_ADDR, cmd, 1) ;
 
     wait(.01);
-
     i2cBus.read(NUNCHUK_8BIT_ADDR, buffer, 6) ;
 
     data.xStick   = buffer[0];
@@ -65,7 +64,7 @@
     while(true) {
         GetNunchukData(nunchukData);
         printf("x-yoy %3d,y-yoy %3d ",nunchukData.xStick,nunchukData.yStick );
-        printf("\r\n")
+        printf("\r\n");
     }
 }