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)
Copyright © demmel products gmbh. All rights reserved.