Click or drag to resize

Output Constructor

PWM output object constructor.

Namespace: IO.Objects.LPC1114IOP.Servo
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2026.331.1
Syntax
C#
public Output(
	pin_id_t pin,
	double position = 0
)

Parameters

pin  pin_id_t
Servo output pin number.
position  Double  (Optional)
Servo normalized position (-1.0 to +1.0).
Remarks

All PWM outputs share the same pulse frequency.

You must set the common PWM output pulse frequency to a value from 50 to 400 Hz (i.e.IO.Objects.LPC1114IOP.PWM.Output.frequency = 50;) before configuring a servo output.

See Also