2020/8/24

Revision:
0:d56d821617b6
Child:
1:43c83e461ea4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BMX055.h	Mon Sep 02 09:01:59 2019 +0000
@@ -0,0 +1,23 @@
+#ifndef BMX055_H_
+#define BMX055_H_
+
+#define ACC 0x19<<1
+#define GYRO 0x69<<1
+#define MAG 0x13<<1
+
+class BMX055
+{
+    public:
+        BMX055(PinName SDA, PinName SCL);
+        float accel[3];
+        float gyroscope[3];
+        float magnet[3];
+        void getAcc(void);
+        void getGyro(void);
+        void getMag(void);
+    private:
+        I2C bmx055;
+        void bmx_init(void);
+};
+
+#endif /* BMX055_H_ */
\ No newline at end of file