Edit

Share via


Dht22 Constructors

Definition

Overloads

Dht22(Int32, PinNumberingScheme)
Dht22(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT22 sensor

Dht22(Int32, PinNumberingScheme)

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

Parameters

pin
Int32
pinNumberingScheme
PinNumberingScheme

Applies to

Dht22(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT22 sensor

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