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.PWMAssembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax 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