Dht11 Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for