Seeed_Grove_Digital_Gyro

Dependencies:   ITG3200 mbed

Fork of Seeed_Grove_Digital_Gyro by Seeed

Files at this revision

API Documentation at this revision

Comitter:
benshiue
Date:
Wed Feb 04 05:01:49 2015 +0000
Parent:
2:e2676f02a6b1
Commit message:
Seeed_grove_digital_Gyro

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e2676f02a6b1 -r 8288ae5843ec main.cpp
--- a/main.cpp	Fri Aug 15 23:48:46 2014 +0000
+++ b/main.cpp	Wed Feb 04 05:01:49 2015 +0000
@@ -2,7 +2,9 @@
 #include "mbed.h"
 #include "ITG3200.h"
 
-ITG3200 gyro(D14, D15, 0x68);
+ITG3200 gyro(p9, p10, 0x68);
+DigitalOut myled(LED1);
+DigitalOut myled2(LED2);
 
 int main(void)
 {
@@ -16,7 +18,9 @@
         y = gyro.getGyroY();
         z = gyro.getGyroZ();
         temp = gyro.getTemperature();
+        myled = 1;
         printf("Temp: %d, X: %d, Y: %d, Z: %d\n", temp, x, y, z);
+        
     }
 
 }