Table of Contents

Class Adxl345

Namespace
Iot.Device.Adxl345
Assembly
Iot.Device.Adxl345.dll

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 SpiDevice

The communications channel to a device on a SPI bus.

gravityRange GravityRange

Gravity Measurement Range.

Fields

SpiClockFrequency

ADX1345 SPI Clock Frequency.

public const int SpiClockFrequency = 5000000

Field Value

int

SpiMode

ADX1345 SPI Mode.

public const SpiMode SpiMode = Mode3

Field Value

SpiMode

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()