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
IOException
public Gyroscope init(Gyroscope triggeringAxis, int triggeringMode) throws IOException
init
in interface MultiAxisGyro
IOException
public void enable() throws IOException
enable
in interface MultiAxisGyro
IOException
public void disable() throws IOException
disable
in interface MultiAxisGyro
IOException
public void readGyro() throws IOException
readGyro
in interface MultiAxisGyro
IOException
public int getTimeDelta()
getTimeDelta
in interface MultiAxisGyro
public void recalibrateOffset() throws IOException
recalibrateOffset
in interface MultiAxisGyro
IOException
public static String toString(int i, int l)
Copyright © 2012–2016 Pi4J. All rights reserved.