laboratorio09/01/2015

Dependencies:   MMA8451Q mbed

Files at this revision

API Documentation at this revision

Comitter:
giogal
Date:
Tue Jan 20 15:50:24 2015 +0000
Parent:
2:4a0b5f2947d1
Commit message:
Versione con cui abbiamo fatto la foto; da rimodificare;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4a0b5f2947d1 -r 58faa1496c51 main.cpp
--- a/main.cpp	Tue Jan 20 11:33:52 2015 +0000
+++ b/main.cpp	Tue Jan 20 15:50:24 2015 +0000
@@ -107,22 +107,22 @@
        x = x*2.551 + 50;
        sprintf(x_str,"%f",x);
        VAL_TO_SPI( x_str[0], x_str[1], 134);
-       printf("X = %c %c", x_str[0], x_str[1]);
+       printf("X = %c %c", 5, 5);
        printf("\r\n");
        
        y = conversion(y_buffer);
        y = y*2.551 + 50;
        sprintf(y_str,"%f",y);
        VAL_TO_SPI( y_str[0], y_str[1], 132);
-       printf("Y = %c %c", y_str[0], y_str[1]);
+       printf("Y = %c %c", 5, 5);
        printf("\r\n");
        
-       z = conversion(z_buffer);
-       z = z*2.551 + 50;
-       sprintf(z_str,"%f",z);
-       VAL_TO_SPI( z_str[0], z_str[1], 130);
-       printf("Z = %c %c", z_str[0], z_str[1]);
-       printf("\r\n");
+     //  z = conversion(z_buffer);
+     //  z = z*2.551 + 50;
+     //  sprintf(z_str,"%f",z);
+     //  VAL_TO_SPI( z_str[0], z_str[1], 130);
+     //  printf("Z = %c %c", z_str[0], z_str[1]);
+     //  printf("\r\n");
         
        }