Edit

Share via


Dht11 Constructors

Definition

Overloads

Dht11(Int32, PinNumberingScheme)
Dht11(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT11 sensor

Dht11(Int32, PinNumberingScheme)

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

Parameters

pin
Int32
pinNumberingScheme
PinNumberingScheme

Applies to

Dht11(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT11 sensor

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