Hmc5883l Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initialize a new HMC5883L device connected through I2C
public Hmc5883l (System.Device.I2c.I2cDevice i2cDevice, Iot.Device.Hmc5883l.Gain gain = Iot.Device.Hmc5883l.Gain.Gain1090, Iot.Device.Hmc5883l.MeasuringMode measuringMode = Iot.Device.Hmc5883l.MeasuringMode.Continuous, Iot.Device.Hmc5883l.OutputRate outputRate = Iot.Device.Hmc5883l.OutputRate.Rate15, Iot.Device.Hmc5883l.SamplesAmount samplesAmount = Iot.Device.Hmc5883l.SamplesAmount.One, Iot.Device.Hmc5883l.MeasurementConfiguration measurementConfig = Iot.Device.Hmc5883l.MeasurementConfiguration.Normal);
new Iot.Device.Hmc5883l.Hmc5883l : System.Device.I2c.I2cDevice * Iot.Device.Hmc5883l.Gain * Iot.Device.Hmc5883l.MeasuringMode * Iot.Device.Hmc5883l.OutputRate * Iot.Device.Hmc5883l.SamplesAmount * Iot.Device.Hmc5883l.MeasurementConfiguration -> Iot.Device.Hmc5883l.Hmc5883l
Public Sub New (i2cDevice As I2cDevice, Optional gain As Gain = Iot.Device.Hmc5883l.Gain.Gain1090, Optional measuringMode As MeasuringMode = Iot.Device.Hmc5883l.MeasuringMode.Continuous, Optional outputRate As OutputRate = Iot.Device.Hmc5883l.OutputRate.Rate15, Optional samplesAmount As SamplesAmount = Iot.Device.Hmc5883l.SamplesAmount.One, Optional measurementConfig As MeasurementConfiguration = Iot.Device.Hmc5883l.MeasurementConfiguration.Normal)
Parameters
- i2cDevice
- I2cDevice
The I2C device used for communication.
- gain
- Gain
Gain Setting
- measuringMode
- MeasuringMode
The Mode of Measuring
- outputRate
- OutputRate
Typical Data Output Rate (Hz)
- samplesAmount
- SamplesAmount
Number of samples averaged per measurement output
- measurementConfig
- MeasurementConfiguration
Measurement configuration
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for