Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MPU9250 by
Revision 3:15a3bd361cb3, committed 2016-08-06
- Comitter:
- gitakichi
- Date:
- Sat Aug 06 12:03:45 2016 +0000
- Parent:
- 2:855c83d4c7d6
- Commit message:
- ??????????MPU9250??????NUCLEO-F303K8????????; get attitude by MPU9250 and Nucleo-F303K8.
Changed in this revision
| MPU9250.h | Show annotated file Show diff for this revision Revisions of this file |
| attitude.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MPU9250.h Sat Aug 06 11:46:39 2016 +0000
+++ b/MPU9250.h Sat Aug 06 12:03:45 2016 +0000
@@ -189,10 +189,8 @@
uint8_t Mmode = 0x06; // Either 8 Hz 0x02) or 100 Hz (0x06) magnetometer data ODR
float aRes, gRes, mRes; // scale resolutions per LSB for the sensors
-//Set up I2C, (SDA,SCL)
+ //Set up I2C
I2C i2c(I2C_SDA, I2C_SCL);
-
-DigitalOut myled(LED1);
// Pin definitions
int intPin = 12; // These can be changed, 2 and 3 are the Arduinos ext int pins
--- a/attitude.h Sat Aug 06 11:46:39 2016 +0000
+++ b/attitude.h Sat Aug 06 12:03:45 2016 +0000
@@ -6,9 +6,8 @@
void attitude_setup(void)
{
- //Set up I2C
i2c.frequency(400000); // use fast (400 kHz) I2C
-
+
t.start();
// Read the WHO_AM_I register, this is a good test of communication
