Awesome
MMA8653 Accelerometer
This library brings support for the NXP MMA8653 I2C accelerometer to Arduino and other similar boards.
(Like the BBC MicroBit, wich has a MMA8653 accelerometer on board).
Features:
- Set Output Data Rates (ODR) from 1.56hz to 800hz
- Set Range to either 2G, 4G or 8G modes
- Select between 8bit and 10bit resolution modes
- Set oversampling/power modes
- Set individual axis offset values
- Set Data Ready (DR) interrupt
- Set Freefall/Motion Detection (FFMT) interrupt
- Set Orientation Detection Interrupt
Installation
- Download the Main branch from GitHub.
- Unzip and modify the Folder name to "MMA8653" (Remove the '-main' suffix)
- Paste the modified folder on your Library folder (On your
Libraries
folder inside Sketchbooks or Arduino software). - Restart the Arduino IDE
Documentation
Refer to the examples and comments in the source files.