for test all systems

Dependencies:   mbed SDFileSystem

Files at this revision

API Documentation at this revision

Comitter:
RyusukeIwata
Date:
Mon Aug 23 09:22:02 2021 +0000
Parent:
1:36f42dcbdad1
Commit message:
0823;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Aug 05 08:20:02 2021 +0000
+++ b/main.cpp	Mon Aug 23 09:22:02 2021 +0000
@@ -103,10 +103,12 @@
             
             
             for(int i = 0; i<10; i++) {
-                data[0] = 0x3F;
+                //data[0] = 0x3F;
+                data[0] = 0x3B;//xh
                 i2c.write(addr_accel_gyro,data,1);
                 i2c.read(addr_accel_gyro|0x01,xh,1);
-                data[0] = 0x40;
+                //data[0] = 0x40;
+                data[0] = 0x3C;//xl
                 i2c.write(addr_accel_gyro,data,1);
                 i2c.read(addr_accel_gyro|0x01,xl,1);
                 //pc.printf("xh = 0x%02X,xl = 0x%02X\r\n",xh[0],xl[0]);
@@ -143,7 +145,7 @@
     for(int i = 0; i < 10; i++) {
         xbee.printf("num = %d\r\n",i);
         pc.printf("num = %d\r\n",i);
-        //pc.printf("%c\r\n",xbee.getc());
+        pc.printf("%c\r\n",xbee.getc());
         wait(1.0);
     }
 }