Click or drag to resize

Output Constructor

PWM output object constructor.

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

Parameters

pin  pin_id_t
PWM output pin number.
duty  Double  (Optional)
PWM output duty cycle percentage (0.0 to 100.0).
Remarks

All PWM outputs share the same pulse frequency.

You must set the common PWM output pulse frequency (i.e.IO.Objects.LPC1114IOP.PWM.Output.frequency = 1000;) before configuring a PWM output.

See Also