Package hw
Class IO

Public Method getPWMCurrentDutyCycleResolution

static int getPWMCurrentDutyCycleResolution(byte pwmPin)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

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

This method returns the granularity that is currently applied to the duty cycle for a specified pin with the IO.setPWMDutyCycle(float, byte) method. It depends on the granularity of the frequency which is currently adjusted. The IO.setPWMFrequency(int) method change the granularity but doesn't change the duty cycle which is adjusted automatically with this frequency method.

Returns Range Description
dutyCycleResolution 0 ... 100,000,000 current dury cycle resolution

Example

  int res = IO.getPWMCurrentDutyCycleResolution(IO.PWM_2);

See also:

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