*All credits go to Kris Winer, you can import the official library at https://os.mbed.com/components/MPU-6050/ The modification of this library was to remove the use of the n5110 LCD module. The program now outputs to a serial monitor at a baud rate of 9600.
Diff: MPU6050.h
- Revision:
- 3:f6975e1a9800
- Parent:
- 1:cea9d83b8636
diff -r e0381ca0edac -r f6975e1a9800 MPU6050.h --- a/MPU6050.h Sun Jun 29 21:53:23 2014 +0000 +++ b/MPU6050.h Mon Oct 07 23:57:21 2019 +0000 @@ -153,7 +153,7 @@ int Ascale = AFS_2G; //Set up I2C, (SDA,SCL) -I2C i2c(I2C_SDA, I2C_SCL); +I2C i2c(PTC9,PTC8); DigitalOut myled(LED1);