libspiagentspiagent_pwm_configure Method |
Configure a GPIO pin as a PWM output.
Namespace: IO.BindingsAssembly: libsimpleio (in libsimpleio.dll) Version: 2.2026.331.1
Syntaxpublic static void spiagent_pwm_configure(
uint pin,
out int error
)
Parameters
- pin UInt32
- PWM 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 with a call
to spiagent_pwm_set_frequency()before configuring a
PWM output.
See Also