Läs på engelska Redigera

Dela via


Uln2003 Constructors

Definition

Overloads

Uln2003(Int32, Int32, Int32, Int32, GpioController)

C#
public Uln2003 (int pin1, int pin2, int pin3, int pin4, System.Device.Gpio.GpioController controller = default);

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

Uln2003(Int32, Int32, Int32, Int32, GpioController, Boolean, Int32)

Initialize a Uln2003 class.

C#
public Uln2003 (int pin1, int pin2, int pin3, int pin4, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true, int stepsToRotate = 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