int GetPortDutyCycle(int, string)

Gets the duty cycle of the specified port/pin.

Security

Trust Level Required: Full Trust

Parameters

Name Description
portIndex int
The port/pin index.
deviceName (Optional) string
The name of the device, as specified in the Config Tool. Default: null.

Return

The current duty cycle, in percent, or -1 if a non-PWM port/pin was specified.