Edit

Share via


Dht21 Constructors

Definition

Overloads

Dht21(Int32, PinNumberingScheme)
Dht21(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT22 sensor

Dht21(Int32, PinNumberingScheme)

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

Parameters

pin
Int32
pinNumberingScheme
PinNumberingScheme

Applies to

Dht21(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT22 sensor

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