9e78615f9f7f70aa1e8e1b27b8983f596bcb5ca7
Library for the GY-521 Breakboard
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).
- Compile the library by typing
make
in the projects root - Copy the
libgy521.so
file to/usr/lib
and thelibgy521.h
header file to/usr/include
- In case of an error run
ldconfig
to detect the new library - have fun :)
Including the library
After you have compiled and copied the library properly just include it (#include <libgy521.h>
) and compile with the flag -lgy521
.
Documentation
Description
Languages
C
98.2%
Makefile
1.8%