mirror of https://github.com/joan2937/pigpio
PR#413 Update doc: return current PWM dutycycle instead of 0
This commit is contained in:
parent
0daad582ac
commit
3140218f56
|
@ -949,7 +949,7 @@ user_gpio: 0-31.
|
||||||
.br
|
.br
|
||||||
|
|
||||||
.br
|
.br
|
||||||
Returns 0 if OK, otherwise PI_BAD_USER_GPIO or PI_NOT_PWM_GPIO.
|
Returns current PWM dutycycle if OK, otherwise PI_BAD_USER_GPIO or PI_NOT_PWM_GPIO.
|
||||||
|
|
||||||
.br
|
.br
|
||||||
|
|
||||||
|
|
|
@ -568,7 +568,8 @@ Return the PWM dutycycle in use on a GPIO.
|
||||||
user_gpio: 0-31.
|
user_gpio: 0-31.
|
||||||
. .
|
. .
|
||||||
|
|
||||||
Returns 0 if OK, otherwise PI_BAD_USER_GPIO or PI_NOT_PWM_GPIO.
|
Returns current PWM dutycycle if OK,
|
||||||
|
otherwise PI_BAD_USER_GPIO or PI_NOT_PWM_GPIO.
|
||||||
|
|
||||||
For normal PWM the dutycycle will be out of the defined range
|
For normal PWM the dutycycle will be out of the defined range
|
||||||
for the GPIO (see [*get_PWM_range*]).
|
for the GPIO (see [*get_PWM_range*]).
|
||||||
|
|
Loading…
Reference in New Issue