Class Adxl345
SPI Accelerometer ADX1345.
[Interface("SPI Accelerometer ADX1345")]
public class Adxl345
- Inheritance
-
Adxl345
Constructors
Adxl345(SpiDevice, GravityRange)
Initializes a new instance of the Adxl345 class. SPI Accelerometer ADX1345.
public Adxl345(SpiDevice sensor, GravityRange gravityRange)
Parameters
sensor
SpiDeviceThe communications channel to a device on a SPI bus.
gravityRange
GravityRangeGravity Measurement Range.
Fields
SpiClockFrequency
ADX1345 SPI Clock Frequency.
public const int SpiClockFrequency = 5000000
Field Value
SpiMode
ADX1345 SPI Mode.
public const SpiMode SpiMode = Mode3
Field Value
Properties
Acceleration
Read Acceleration from ADXL345.
[Telemetry]
public Vector3 Acceleration { get; }
Property Value
- Vector3
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()