Getting inverse values of acceleration and tilt for the MPU 6050
There are a lot of libraries, I wouldn't use the accelerometer library in wire, download and add the I2Cdev library, you can get it on a variety of different sites like github.com