Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pigpiod_if2] always returning 0 in get_PWM_dutycycle does not make sense #408

Closed
hulloanson opened this issue Nov 23, 2020 · 4 comments
Closed

Comments

@hulloanson
Copy link

As far as I understand, this function is supposed to get current dutycycle of a gpio pin, which the equivalent command would be pigs gdc 18 if I wanted to get dutycycle of pin 18.

Yet as mentioned in documentation and in actual runs, it always returns 0. What is it supposed to accomplish? How do I get pwm dutycycle with the pigpiod_if2 api?

image

@joan2937
Copy link
Owner

Given that it works properly for me I suggest you add example code which does not work for you.

@hulloanson
Copy link
Author

I am sorry. There was a problem with outputting the reading on my side. It now returns the correct number :)

I still suggest we modify the documentation to make it clear though.

@hulloanson
Copy link
Author

Pull request: #413

@guymcswain
Copy link
Collaborator

Fixed in v79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants