Click or drag to resize

libspiagentspiagent_servo_configure Method

Configure a GPIO pin as a servo output.

Namespace: IO.Bindings
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2026.331.1
Syntax
C#
public static void spiagent_servo_configure(
	uint pin,
	out int error
)

Parameters

pin  UInt32
Servo output pin number.
error  Int32
Set to 0 upon success, or an errno error number upon failure.
Remarks

All PWM outputs share the same pulse frequency.

You must set the common PWM pulse output frequency to a value from 50 to 400 Hz with a call to spiagent_pwm_set_frequency()before configuring a servo output.

See Also