GpioOutputSegment(Int32[], GpioController, Boolean) Constructor
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.
IOutputSegment implementation that uses GpioController.
C#
public GpioOutputSegment (int[] pins, System.Device.Gpio.GpioController? gpioController = default, bool shouldDispose = true);
new Iot.Device.Multiplexing.GpioOutputSegment : int[] * System.Device.Gpio.GpioController * bool -> Iot.Device.Multiplexing.GpioOutputSegment
Public Sub New (pins As Integer(), Optional gpioController As GpioController = Nothing, Optional shouldDispose As Boolean = true)
- pins
- Int32[]
The GPIO pins that should be used and are connected.
- gpioController
- GpioController
The GpioController to use. If one isn't provided, one will be created.
- shouldDispose
- Boolean
The policy to use (true, by default) for disposing the GPIO controller when disposing this instance.
Toode | Versioonid |
---|---|
.NET IoT Libraries | 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |