Library receiving values from MPU6050
- include "mbed.h"
- include "TI_MPU6050.h"
Example
include the mbed library with this snippet
TI_MPU6050 mpu6050; DigitalOut led1(LED1); int main() { mpu6050.setSleepEnabled(false); while(1) { if (mpu6050.isHorizontal()) { led1 = 1; } else { led1 = 0; } int verticalAngle = mpu6050.getVerticalAngle(); printf("verticalAngle is %d\n\r", verticalAngle); } }
Files at revision 1:bc1e8a435c95
Name | Size | Actions |
---|---|---|
[up] | ||
MPU6050.lib | 64 | Revisions Annotate |
TI_MPU6050.cpp | 1627 | Revisions Annotate |
TI_MPU6050.h | 343 | Revisions Annotate |