Arduino Library

arduino-icon-17552A library for accessing navX-MXP (and navX-Micro) from Arduino is available.  This library supports the I2c and SPI interfaces.

The navX-MXP Arduino Library is useful for integrating navX-MXP into Arduino-based project.

To use the library, you can checkout the source code with Git.

Getting Started

After checking out the source code with Git into a directory on your computer, compile using the Arduino IDE.

The file navXTestJig.ino demonstrates how to integrate the library into your application.  The setup() and loop() functions in this file demonstrate how to initialize and communicate with the sensor.