Bluepill version of mpu9250-dmp library of sparkfun

Dependencies:   MotionDriver_6_1 SparkFunMPU9250-DMP mbed-STM32F103C8T6 mbed

Fork of MPU9250-dmp by Oğuz Özdemir

Revision:
2:7be1ac6eb8cb
Parent:
0:c6daf7016b8c
Child:
3:740f15b45cb8
diff -r 982fdf483529 -r 7be1ac6eb8cb main.cpp
--- a/main.cpp	Mon Aug 07 13:53:16 2017 +0000
+++ b/main.cpp	Tue Aug 08 08:39:57 2017 +0000
@@ -16,10 +16,12 @@
 }*/
 
 #include "SparkFunMPU9250-DMP.h"
+#include "mdcompat.h"
 
 Serial pc(USBTX,USBRX);
 DigitalOut led(LED1);
 MPU9250_DMP imu;
+char datax[1]={0};
 long DEBUG[]={2,2,2,2};
 int main() 
 {
@@ -50,6 +52,8 @@
   wait_ms(500);
   led=0;
   wait_ms(500);
+  mbed_i2c_read((unsigned char)0x68,(unsigned char)0x75,1,datax);
+  pc.printf("%d",datax[0]);
   if ( imu.fifoAvailable() ){//fifo is not being available
     led=0;
     wait_ms(100);