Uln2003 Constructors
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.
Uln2003(Int32, Int32, Int32, Int32, GpioController) | |
Uln2003(Int32, Int32, Int32, Int32, GpioController, Boolean, Int32) |
Initialize a Uln2003 class. |
public Uln2003 (int pin1, int pin2, int pin3, int pin4, System.Device.Gpio.GpioController controller = default);
new Iot.Device.Uln2003.Uln2003 : int * int * int * int * System.Device.Gpio.GpioController -> Iot.Device.Uln2003.Uln2003
Public Sub New (pin1 As Integer, pin2 As Integer, pin3 As Integer, pin4 As Integer, Optional controller As GpioController = Nothing)
Parameters
- pin1
- Int32
- pin2
- Int32
- pin3
- Int32
- pin4
- Int32
- controller
- GpioController
Applies to
.NET IoT Libraries 1.0.0
Produkt | Versioner |
---|---|
.NET IoT Libraries | 1.0.0 |
Initialize a Uln2003 class.
public Uln2003 (int pin1, int pin2, int pin3, int pin4, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true, int stepsToRotate = 4096);
new Iot.Device.Uln2003.Uln2003 : int * int * int * int * System.Device.Gpio.GpioController * bool * int -> Iot.Device.Uln2003.Uln2003
Public Sub New (pin1 As Integer, pin2 As Integer, pin3 As Integer, pin4 As Integer, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true, Optional stepsToRotate As Integer = 4096)
Parameters
- pin1
- Int32
The GPIO pin number which corresponds pin A on ULN2003 driver board.
- pin2
- Int32
The GPIO pin number which corresponds pin B on ULN2003 driver board.
- pin3
- Int32
The GPIO pin number which corresponds pin C on ULN2003 driver board.
- pin4
- Int32
The GPIO pin number which corresponds pin D on ULN2003 driver board.
- controller
- GpioController
The controller.
- shouldDispose
- Boolean
True to dispose the Gpio Controller
- stepsToRotate
- Int32
Amount of steps needed to rotate motor once in HalfStepMode.
Applies to
.NET IoT Libraries 2.2.0 och andra versioner
Produkt | Versioner |
---|---|
.NET IoT Libraries | 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |