Edit

Share via


Dht12 Constructors

Definition

Overloads

Dht12(I2cDevice)

Create a DHT12 sensor through I2C

Dht12(Int32, PinNumberingScheme)
Dht12(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT12 sensor

Dht12(I2cDevice)

Create a DHT12 sensor through I2C

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

Parameters

i2cDevice
I2cDevice

I2C Device

Applies to

Dht12(Int32, PinNumberingScheme)

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

Parameters

pin
Int32
pinNumberingScheme
PinNumberingScheme

Applies to

Dht12(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT12 sensor

public Dht12 (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.Dht12 : int * System.Device.Gpio.PinNumberingScheme * System.Device.Gpio.GpioController * bool -> Iot.Device.DHTxx.Dht12
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