Skip to content

This class allows you to get datas from the GY-521 sensor on Raspberry Pi AND in C++ !

Notifications You must be signed in to change notification settings

omaraflak/GY-521-Raspberry-Pi-C-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GY-521 | MPU-6050 Raspberry Pi C++

This class allows you to get datas from the GY-521 sensor on Raspberry Pi AND in C++ !

  1. Download WiringPi library

    git clone git://git.drogon.net/wiringPi cd wiringPi git pull origin cd wiringPi ./build

  2. Use the Sensor class as follows:

    Sensor sensor; int x = sensor.getGyroX(); int y = sensor.getAccelY(); int z = sensor.getAngleZ();

Sample: https://github.com/omaflak/GY-521-Raspberry-Pi-C-/blob/master/libSensorSample.cpp

About

This class allows you to get datas from the GY-521 sensor on Raspberry Pi AND in C++ !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published