-
Notifications
You must be signed in to change notification settings - Fork 135
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
Question about PWM channel and pin #24
Comments
wrong documentation, please check #26 |
See latest comment on #26. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here I was trying to use this library for the Coral EdgeTPU board, I'm having such difficulty to get the PWM to work. I have post a question here.
Here is my testing code:
Problem is this part:
I can see output when running
PWM(0,0)
PWM(0,1)
PWM(0,2)
but I get the error messsage when trying to run the following:
PWM(1,1)
PWM(2,2)
Based off the document from both Coral and the library site:
https://coral.withgoogle.com/tutorials/devboard-gpio/
https://github.com/vsergeev/python-periphery
The
PWM(1,1)
PWM(2,2)
should have worked without issue, I can see the following directories existed:
In the python-periphery source code
https://github.com/vsergeev/python-periphery/blob/master/periphery/pwm.py
it should getting the path as following:
PWM(1,1) ===> /sys/class/pwm/pwmchip1/pwm1
ifpwm1
not exists, then it should call theexport
to generate it.So, My main question are:
channel
andpin
and how it is been used ?Thank you in advance.
The text was updated successfully, but these errors were encountered: