From 3800a72b38322e2616cd937f5b51664a86815005 Mon Sep 17 00:00:00 2001 From: YcChan Date: Sun, 1 Jan 2017 14:12:43 +0800 Subject: [PATCH] mpu3050.h --- mpu3050.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 mpu3050.h diff --git a/mpu3050.h b/mpu3050.h new file mode 100644 index 0000000..7b1e6c1 --- /dev/null +++ b/mpu3050.h @@ -0,0 +1,8 @@ +#ifndef __mpu3050_H +#define __mpu3050_H + +#define GYRO_SCALE 0.060975 + +void mpu3050_init(void); +void mpu3050_get_data(s16 *gx, s16 *gy, s16 *gz, s16 *temperature); +#endif