From 9e78615f9f7f70aa1e8e1b27b8983f596bcb5ca7 Mon Sep 17 00:00:00 2001 From: structix Date: Sat, 10 Sep 2016 22:33:51 +0200 Subject: [PATCH] Cleanup --- README.md | 2 +- libgy521.c | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 415aac7..f5548f6 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This library depends on the wiringPi library. Make sure to install it first (`su 4. have fun :) ## Including the library -After you have compiled and copied the library properly just include it (`#include `) and compile with the flag `lgy521`. +After you have compiled and copied the library properly just include it (`#include `) and compile with the flag `-lgy521`. ## Documentation [MPU-6050 Datasheet](https://www.olimex.com/Products/Modules/Sensors/MOD-MPU6050/resources/RM-MPU-60xxA_rev_4.pdf) diff --git a/libgy521.c b/libgy521.c index 5975961..38e5881 100644 --- a/libgy521.c +++ b/libgy521.c @@ -1,4 +1,3 @@ -//#include #include #include #include @@ -6,9 +5,7 @@ #include "libgy521.h" //Constants - -#define MPU6050_I2C_ADDRESS 0x68 //I2C - +#define MPU6050_I2C_ADDRESS 0x68 //I2C #define GRAVITIY_MS2 9.80665 // Scale Modifiers @@ -95,12 +92,6 @@ int read_i2c_word_combined(int reg) { return value; } } - - - - - - float getTemp(void) { /**