Getting started with MPU6050 6 Axis Accelerometer and Gryo with Arduino on MAC OS
Follow instruction on:
For adding additional libraries on MAC OS follow below.
Unzip i2cdevlib and MPU libraries https://github.com/jrowberg/i2cdevlib/zipball/master at Arduino libraries directory under sketchbook location configured in your Arduino. The sketchbook path can be found at Arduino preference setting.
Unzip toxic processing library toxiclibs-complete-0020.zip at /Applications/Processing.app/Contents/Java/modes/java/libraries — restart processing to reflect the changes.
Enjoy the Teapot example.