Click or drag to resize

Output(Pin, Output, Double) Constructor

Constructor for a single motor, using one GPIO pin for direction control, and one PWM output for speed control.

Namespace: IO.Objects.Motor.PWM
Assembly: libremoteio (in libremoteio.dll) Version: 2.2024.165.1
Syntax
C#
public Output(
	Pin direction,
	Output speed,
	double velocity = 0
)

Parameters

direction  Pin
GPIO pin instance (for direction control).
speed  Output
PWM output instance (for speed control).
velocity  Double  (Optional)
Initial motor velocity.
See Also