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.
Dependents: measure_1_BBB measure_1_CCC measure_1_DDD
Diff: MPU6050.h
- Revision:
- 2:8622f361c1a4
- Parent:
- 1:c9dc906f8b9f
--- a/MPU6050.h Thu May 13 05:11:28 2021 +0000
+++ b/MPU6050.h Fri May 14 00:48:09 2021 +0000
@@ -184,14 +184,16 @@
*/
bool readraw(int *gx, int *gy, int *gz,int *ax, int *ay, int *az);
bool readraw2(int *ax, int *ay, int *az);
-
+ bool readraw2(int16_t *ax, int16_t *ay, int16_t *az);
+ bool read_data(char sad, char sub, char *buf, int length);
+ int ADDRESS;
private:
I2C _MPU6050;
float gx, gy, gz,ax,ay,az;
- int ADDRESS;
+ //int ADDRESS;
bool write_reg(int addr_i2c,int addr_reg, char v);
bool read_reg(int addr_i2c,int addr_reg, char *v);
- bool read_data(char sad, char sub, char *buf, int length);
+ //bool read_data(char sad, char sub, char *buf, int length);
};
#endif