From d20de85ee3b684a1c2fca7d252d4fe2b71a6fc0d Mon Sep 17 00:00:00 2001 From: structix Date: Sat, 10 Sep 2016 22:31:20 +0200 Subject: [PATCH] Readme changes --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ec3a192..415aac7 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,15 @@ ## Compiling the library This library depends on the wiringPi library. Make sure to install it first (`sudo apt-get install wiringpi` but often it's preinstalled on raspbian). -1. Compile the library by typing `make` in the projects root. -2. Copy the `libgy521.so` file to `/usr/lib` and the `libgy521.h` header file to `/usr/include`. +1. Compile the library by typing `make` in the projects root +2. Copy the `libgy521.so` file to `/usr/lib` and the `libgy521.h` header file to `/usr/include` 3. In case of an error run `ldconfig` to detect the new library 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`. ## Documentation [MPU-6050 Datasheet](https://www.olimex.com/Products/Modules/Sensors/MOD-MPU6050/resources/RM-MPU-60xxA_rev_4.pdf) + +[WiringPi I2C Library](http://wiringpi.com/reference/i2c-library/)