Method | Description | |
---|---|---|
ADXL345 ( ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.AnalogDevices.ADXL345 class. This is the default constructor. The default constructor assumes a Revision 2 or higher Raspberry Pi host and that the ADXL345 is at address ADXL345.ADXL345_ADDRESS.
|
|
ADXL345 ( II2CBus device ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.AnalogDevices.ADXL345 class with the I2C device that represents the physical connection to the gyro.
|
|
ADXL345 ( II2CBus device, |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.AnalogDevices.ADXL345 class with the I2C device that represents the physical connection to the gyro and the bus address of the device.
|
|
Disable ( ) : void |
Disables the gyro.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Gyroscope.AnalogDevices.ADXL345. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Gyroscope.AnalogDevices.ADXL345 in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Gyroscope.AnalogDevices.ADXL345 so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Gyroscope.AnalogDevices.ADXL345 was occupying. |
|
Enable ( ) : void |
Enables the gyro.
|
|
Init ( IGyroscope triggeringAxis, GyroTriggerMode mode ) : IGyroscope |
Initializes the Gyro.
|
|
ReadGyro ( ) : void |
Reads the gyro and stores the value internally.
|
|
RecalibrateOffset ( ) : void |
Recalibrates the offset.
|
public ADXL345 ( II2CBus device ) : System | ||
device | II2CBus |
/// The I2C device that represents the physical connection to the gyro.
/// If null, then it is assumed that the host is a revision 2 or higher
/// board and a default |
return | System |
public ADXL345 ( II2CBus device, |
||
device | II2CBus |
/// The I2C device that represents the physical connection to the gyro.
/// If null, then it is assumed that the host is a revision 2 or higher
/// board and a default |
busAddress | /// The bus address of the device. /// | |
return | System |
public Init ( IGyroscope triggeringAxis, GyroTriggerMode mode ) : IGyroscope | ||
triggeringAxis | IGyroscope | /// The gyro that represents the single axis responsible for /// the triggering of updates. /// |
mode | GyroTriggerMode | /// The gyro update trigger mode. /// |
return | IGyroscope |