Click or drag to resize

MUNTS_0018OrangePiZero2WServoOutputFactory Method

Servo output object factory for the on-board servo output at header J2.

Namespace: IO.Objects.SimpleIO.Platforms
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2025.76.2
Syntax
C#
public static Output ServoOutputFactory(
	Designator desg,
	int frequency = 50,
	double position = 0
)

Parameters

desg  Designator
Device designator for one of the on-board PWM outputs (J2PWM).
frequency  Int32  (Optional)
PWM pulse frequency. Ordinary analog servos operate best at 50 Hz.
position  Double  (Optional)
Initial servo position.

Return Value

Output
Servo output object.
See Also