Ads1115 Constructors
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.
Overloads
Ads1115(I2cDevice, InputMultiplexer, MeasuringRange, DataRate) | |
Ads1115(I2cDevice, InputMultiplexer, MeasuringRange, DataRate, DeviceMode) |
Initialize a new Ads1115 device connected through I2C |
Ads1115(I2cDevice, GpioController, Int32, Boolean, InputMultiplexer, MeasuringRange, DataRate, DeviceMode) |
Initialize a new Ads1115 device connected through I2C with an additional GPIO controller for interrupt handling. |
Ads1115(I2cDevice, InputMultiplexer, MeasuringRange, DataRate)
public Ads1115 (System.Device.I2c.I2cDevice i2cDevice, Iot.Device.Ads1115.InputMultiplexer inputMultiplexer = Iot.Device.Ads1115.InputMultiplexer.AIN0, Iot.Device.Ads1115.MeasuringRange measuringRange = Iot.Device.Ads1115.MeasuringRange.FS4096, Iot.Device.Ads1115.DataRate dataRate = Iot.Device.Ads1115.DataRate.SPS128);
new Iot.Device.Ads1115.Ads1115 : System.Device.I2c.I2cDevice * Iot.Device.Ads1115.InputMultiplexer * Iot.Device.Ads1115.MeasuringRange * Iot.Device.Ads1115.DataRate -> Iot.Device.Ads1115.Ads1115
Public Sub New (i2cDevice As I2cDevice, Optional inputMultiplexer As InputMultiplexer = Iot.Device.Ads1115.InputMultiplexer.AIN0, Optional measuringRange As MeasuringRange = Iot.Device.Ads1115.MeasuringRange.FS4096, Optional dataRate As DataRate = Iot.Device.Ads1115.DataRate.SPS128)
Parameters
- i2cDevice
- I2cDevice
- inputMultiplexer
- InputMultiplexer
- measuringRange
- MeasuringRange
- dataRate
- DataRate
Applies to
Ads1115(I2cDevice, InputMultiplexer, MeasuringRange, DataRate, DeviceMode)
Initialize a new Ads1115 device connected through I2C
public Ads1115 (System.Device.I2c.I2cDevice i2cDevice, Iot.Device.Ads1115.InputMultiplexer inputMultiplexer = Iot.Device.Ads1115.InputMultiplexer.AIN0, Iot.Device.Ads1115.MeasuringRange measuringRange = Iot.Device.Ads1115.MeasuringRange.FS4096, Iot.Device.Ads1115.DataRate dataRate = Iot.Device.Ads1115.DataRate.SPS128, Iot.Device.Ads1115.DeviceMode deviceMode = Iot.Device.Ads1115.DeviceMode.Continuous);
new Iot.Device.Ads1115.Ads1115 : System.Device.I2c.I2cDevice * Iot.Device.Ads1115.InputMultiplexer * Iot.Device.Ads1115.MeasuringRange * Iot.Device.Ads1115.DataRate * Iot.Device.Ads1115.DeviceMode -> Iot.Device.Ads1115.Ads1115
Public Sub New (i2cDevice As I2cDevice, Optional inputMultiplexer As InputMultiplexer = Iot.Device.Ads1115.InputMultiplexer.AIN0, Optional measuringRange As MeasuringRange = Iot.Device.Ads1115.MeasuringRange.FS4096, Optional dataRate As DataRate = Iot.Device.Ads1115.DataRate.SPS128, Optional deviceMode As DeviceMode = Iot.Device.Ads1115.DeviceMode.Continuous)
Parameters
- i2cDevice
- I2cDevice
The I2C device used for communication.
- inputMultiplexer
- InputMultiplexer
Input Multiplexer
- measuringRange
- MeasuringRange
Programmable Gain Amplifier
- dataRate
- DataRate
Data Rate
- deviceMode
- DeviceMode
Initial device mode
Applies to
Ads1115(I2cDevice, GpioController, Int32, Boolean, InputMultiplexer, MeasuringRange, DataRate, DeviceMode)
Initialize a new Ads1115 device connected through I2C with an additional GPIO controller for interrupt handling.
public Ads1115 (System.Device.I2c.I2cDevice i2cDevice, System.Device.Gpio.GpioController gpioController, int gpioInterruptPin, bool shouldDispose = true, Iot.Device.Ads1115.InputMultiplexer inputMultiplexer = Iot.Device.Ads1115.InputMultiplexer.AIN0, Iot.Device.Ads1115.MeasuringRange measuringRange = Iot.Device.Ads1115.MeasuringRange.FS4096, Iot.Device.Ads1115.DataRate dataRate = Iot.Device.Ads1115.DataRate.SPS128, Iot.Device.Ads1115.DeviceMode deviceMode = Iot.Device.Ads1115.DeviceMode.Continuous);
public Ads1115 (System.Device.I2c.I2cDevice i2cDevice, System.Device.Gpio.GpioController? gpioController, int gpioInterruptPin, bool shouldDispose = true, Iot.Device.Ads1115.InputMultiplexer inputMultiplexer = Iot.Device.Ads1115.InputMultiplexer.AIN0, Iot.Device.Ads1115.MeasuringRange measuringRange = Iot.Device.Ads1115.MeasuringRange.FS4096, Iot.Device.Ads1115.DataRate dataRate = Iot.Device.Ads1115.DataRate.SPS128, Iot.Device.Ads1115.DeviceMode deviceMode = Iot.Device.Ads1115.DeviceMode.Continuous);
new Iot.Device.Ads1115.Ads1115 : System.Device.I2c.I2cDevice * System.Device.Gpio.GpioController * int * bool * Iot.Device.Ads1115.InputMultiplexer * Iot.Device.Ads1115.MeasuringRange * Iot.Device.Ads1115.DataRate * Iot.Device.Ads1115.DeviceMode -> Iot.Device.Ads1115.Ads1115
Public Sub New (i2cDevice As I2cDevice, gpioController As GpioController, gpioInterruptPin As Integer, Optional shouldDispose As Boolean = true, Optional inputMultiplexer As InputMultiplexer = Iot.Device.Ads1115.InputMultiplexer.AIN0, Optional measuringRange As MeasuringRange = Iot.Device.Ads1115.MeasuringRange.FS4096, Optional dataRate As DataRate = Iot.Device.Ads1115.DataRate.SPS128, Optional deviceMode As DeviceMode = Iot.Device.Ads1115.DeviceMode.Continuous)
Parameters
- i2cDevice
- I2cDevice
The I2C device used for communication.
- gpioController
- GpioController
The GPIO Controller used for interrupt handling
- gpioInterruptPin
- Int32
The pin number where the interrupt line is attached on the GPIO controller
- shouldDispose
- Boolean
True (the default) if the GPIO controller shall be disposed when disposing this instance
- inputMultiplexer
- InputMultiplexer
Input Multiplexer
- measuringRange
- MeasuringRange
Programmable Gain Amplifier
- dataRate
- DataRate
Data Rate
- deviceMode
- DeviceMode
Initial device mode
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