Edit

Share via


DhtBase Constructors

Definition

Overloads

DhtBase(I2cDevice)

Create a DHT sensor through I2C (Only DHT12)

DhtBase(Int32, PinNumberingScheme)
DhtBase(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT sensor

DhtBase(I2cDevice)

Create a DHT sensor through I2C (Only DHT12)

public DhtBase (System.Device.I2c.I2cDevice i2cDevice);
new Iot.Device.DHTxx.DhtBase : System.Device.I2c.I2cDevice -> Iot.Device.DHTxx.DhtBase
Public Sub New (i2cDevice As I2cDevice)

Parameters

i2cDevice
I2cDevice

The I2C device used for communication.

Applies to

DhtBase(Int32, PinNumberingScheme)

public DhtBase (int pin, System.Device.Gpio.PinNumberingScheme pinNumberingScheme = System.Device.Gpio.PinNumberingScheme.Logical);
new Iot.Device.DHTxx.DhtBase : int * System.Device.Gpio.PinNumberingScheme -> Iot.Device.DHTxx.DhtBase
Public Sub New (pin As Integer, Optional pinNumberingScheme As PinNumberingScheme = System.Device.Gpio.PinNumberingScheme.Logical)

Parameters

pin
Int32
pinNumberingScheme
PinNumberingScheme

Applies to

DhtBase(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT sensor

public DhtBase (int pin, System.Device.Gpio.PinNumberingScheme pinNumberingScheme = System.Device.Gpio.PinNumberingScheme.Logical, System.Device.Gpio.GpioController? gpioController = default, bool shouldDispose = true);
new Iot.Device.DHTxx.DhtBase : int * System.Device.Gpio.PinNumberingScheme * System.Device.Gpio.GpioController * bool -> Iot.Device.DHTxx.DhtBase
Public Sub New (pin As Integer, Optional pinNumberingScheme As PinNumberingScheme = System.Device.Gpio.PinNumberingScheme.Logical, Optional gpioController As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parameters

pin
Int32

The pin number (GPIO number)

pinNumberingScheme
PinNumberingScheme

The GPIO pin numbering scheme

gpioController
GpioController

GpioController related with operations on pins

shouldDispose
Boolean

True to dispose the Gpio Controller

Applies to