Package hw
Class IO

Public Method getPWMCurrentDutyCycle

static float getPWMCurrentDutyCycle(byte pwmPin)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
pwmPin IO.PWM_0 ... IO.PWM_5 pwm pin

This method returns the actual duty cycle of the specified pwm pin.

Returns Range Description
dutyCycle 0.0 ... 1.0 current dury cycle

Example

  float fl = IO.getPWMCurrentDutyCycle(IO.PWM_3);

See also:

IO.getPWMCurrentDutyCycleResolution(byte)
IO.getPWMCurrentPeriodResolution()
IO.getPWMOnOff(byte)
IO.setPWMFrequency(int)
IO.setPWMDutyCycle(float, byte)
IO.setPWMOnOff(boolean, byte)