upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the MMA7455 Accelerometer. More...
This module defines the MMA7455 interface for libmma7455
Public Member Functions | |
synchronized void | delete () |
MMA7455 (int bus, int devAddr) | |
MMA7455 (int bus) | |
String | name () |
int | calibrate () |
short[] | readData () |
int | i2cReadReg (short reg, byte[] buffer) |
int | i2cWriteReg (short reg, byte[] buffer) |
MMA7455 | ( | int | bus, |
int | devAddr | ||
) |
Instantiates an MMA7455 object
bus | Number of the used bus |
devAddr | Address of the used I2C device |
int calibrate | ( | ) |
Calibrates the sensor
String name | ( | ) |
Returns the name of the component
short [] readData | ( | ) |
Reads X-axis, Y-axis, and Z-axis acceleration data