A library for accessing nav2X-MXP and navX2-Micro (as well as “Classic” navX-MXP and navX-Micro sensors) from Arduino is available. This library supports the I2c, SPI and UART interfaces.
The navX-sensor Arduino Library is useful for integrating a navX-sensor into Arduino-based project.
To use the library, you can checkout the source code with Git.
After checking out the source code with Git into a directory on your computer, compile using the Arduino IDE.
|navX2_I2C||Accesses/displays navX-sensor yaw, pitch roll and compass heading via I2C|
|navX2_SPI||Accesses/displays navX-sensor yaw, pitch roll and compass heading via SPI|
|navX_UART||Accesses/displays navX-sensor yaw, pitch roll and compass heading via UART|
|navXTestJig||demonstrates more advanced usages of the navX-Sensor|