diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6d048f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +mpu6050 \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..27d9753 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +CC=gcc +CFLAG=-O0 -std=c89 -I. +CFILES=$(wildcard *.c) +BIN=mpu6050 + +all: + $(CC) $(CFLAG) $(CFILES) -o $(BIN) + +clean: + rm -rf $(BIN) \ No newline at end of file diff --git a/README.md b/README.md index 02772a8..a830323 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# MPU-6050 \ No newline at end of file +# MPU-6050 + +Combined 3-axis accelerometer and 3-axis gyroscope \ No newline at end of file diff --git a/doc/MPU-6000-Datasheet1.pdf b/doc/MPU-6000-Datasheet1.pdf new file mode 100644 index 0000000..8e5ac97 Binary files /dev/null and b/doc/MPU-6000-Datasheet1.pdf differ diff --git a/RM-MPU-6000A.pdf b/doc/RM-MPU-6000A.pdf similarity index 100% rename from RM-MPU-6000A.pdf rename to doc/RM-MPU-6000A.pdf diff --git a/i2c.c b/i2c.c new file mode 100644 index 0000000..e69de29 diff --git a/i2c.h b/i2c.h new file mode 100644 index 0000000..db70280 --- /dev/null +++ b/i2c.h @@ -0,0 +1,5 @@ +#ifndef I2C_H +#define I2C_H + + +#endif \ No newline at end of file diff --git a/main.c b/main.c new file mode 100644 index 0000000..137ec0a --- /dev/null +++ b/main.c @@ -0,0 +1,8 @@ +#include +#include "mpu6050.h" +#include "i2c.h" + +int main() { + printf("Hello\n"); + return 0; +} \ No newline at end of file diff --git a/mpu6050.c b/mpu6050.c new file mode 100644 index 0000000..e69de29 diff --git a/mpu6050.h b/mpu6050.h new file mode 100644 index 0000000..96b3619 --- /dev/null +++ b/mpu6050.h @@ -0,0 +1,5 @@ +#ifndef MPU6050_H +#define MPU6050_H + + +#endif \ No newline at end of file