public class ADXL345 extends Object implements MultiAxisGyro
| Modifier and Type | Field and Description |
|---|---|
static int |
ADXL345_ADDRESS |
protected AxisGyroscope |
aX |
protected AxisGyroscope |
aY |
protected AxisGyroscope |
aZ |
Gyroscope |
X |
Gyroscope |
Y |
Gyroscope |
Z |
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
enable() |
int |
getTimeDelta() |
Gyroscope |
init(Gyroscope triggeringAxis,
int triggeringMode) |
static void |
main(String[] args) |
void |
readGyro() |
void |
recalibrateOffset() |
static String |
toString(int i,
int l) |
public static final int ADXL345_ADDRESS
public final Gyroscope X
public final Gyroscope Y
public final Gyroscope Z
protected final AxisGyroscope aX
protected final AxisGyroscope aY
protected final AxisGyroscope aZ
public ADXL345(I2CBus bus) throws IOException
IOExceptionpublic Gyroscope init(Gyroscope triggeringAxis, int triggeringMode) throws IOException
init in interface MultiAxisGyroIOExceptionpublic void enable()
throws IOException
enable in interface MultiAxisGyroIOExceptionpublic void disable()
throws IOException
disable in interface MultiAxisGyroIOExceptionpublic void readGyro()
throws IOException
readGyro in interface MultiAxisGyroIOExceptionpublic int getTimeDelta()
getTimeDelta in interface MultiAxisGyropublic void recalibrateOffset()
throws IOException
recalibrateOffset in interface MultiAxisGyroIOExceptionpublic static String toString(int i, int l)
Copyright © 2012–2019 Pi4J. All rights reserved.