Edit

Share via


Adxl357 Class

Definition

I2C Accelerometer ADXL357

public class Adxl357 : IDisposable
type Adxl357 = class
    interface IDisposable
Public Class Adxl357
Implements IDisposable
Inheritance
Adxl357
Implements

Constructors

Adxl357(I2cDevice, AccelerometerRange)

Constructs a ADXL357 I2C device.

Fields

DefaultI2CAddress

The default I2C address of ADXL357 device

Properties

Acceleration

Gets the current acceleration in g. Range depends on the AccelerometerRange passed to the constructor.

AccelerometerRange

Gets or sets the sensitivity of the accelerometer.

Temperature

Gets the current temperature in °C. Range is from −40°C to +125°C.

Methods

CalibrateAccelerationSensor(Int32, Nullable<TimeSpan>)

Calibrates the accelerometer. You can override default samples and calibrationInterval if required.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Applies to