Click or drag to resize

libspiagentspiagent_motor_put Method

Set motor velocity (i.e. speed and direction of rotation).

Namespace: IO.Bindings
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2026.331.1
Syntax
C#
public static void spiagent_motor_put(
	uint pwmpin,
	uint dirpin,
	float speed,
	out int error
)

Parameters

pwmpin  UInt32
Speed PWM output pin number.
dirpin  UInt32
Direction GPIO output pin number.
speed  Single
Normalized motor velocity (-1.0 to +1.0).
error  Int32
Set to 0 upon success, or an errno error number upon failure.
See Also