MPU6050

Dependencies:   mbed

Committer:
sweilz
Date:
Thu Nov 26 15:19:16 2015 +0000
Revision:
1:01875db196ca
Parent:
0:7cb0dd65130a
Test MPU6050

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sweilz 0:7cb0dd65130a 1 #include "mbed.h"
sweilz 0:7cb0dd65130a 2 #include "MPU6050.h"
sweilz 0:7cb0dd65130a 3
sweilz 0:7cb0dd65130a 4 DigitalOut myled(LED1);
sweilz 0:7cb0dd65130a 5 Serial pc(USBTX, USBRX);
sweilz 0:7cb0dd65130a 6 MPU6050 mpu;
sweilz 0:7cb0dd65130a 7
sweilz 0:7cb0dd65130a 8
sweilz 0:7cb0dd65130a 9 int main()
sweilz 0:7cb0dd65130a 10 {
sweilz 0:7cb0dd65130a 11 pc.printf("MPU6050 test\n\n");
sweilz 0:7cb0dd65130a 12 pc.printf("MPU6050 initialize \n");
sweilz 0:7cb0dd65130a 13
sweilz 0:7cb0dd65130a 14 mpu.init();
sweilz 0:7cb0dd65130a 15 mpu.whoAmI();
sweilz 0:7cb0dd65130a 16 pc.printf("MPU6050 testConnection \n");
sweilz 0:7cb0dd65130a 17 }