-
Notifications
You must be signed in to change notification settings - Fork 223
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
How would I translate this Python PWM code to go with go-rpio? #48
Comments
Hi,
or this:
|
this is my golang codes using pwm to control motor, FYI. |
I have similar issue. I try to control electric motor speed with hardware PWM.
Running this code has zero effect. |
|
@drahoslove thank you for quick response.
|
@AndrewKovalenko |
@drahoslove thank you. I just tried to pull the latest - it seems like I still have an issue. To exclude the problem with the motor I connected an LED instead of motor and control it from pin 18 via 2n222 transistor. Here is a listing of my "testing app":
The interesting issue I observe is: |
related #68 |
I'm trying to convert some working Python code to run in go. The Python is as follows:
This Python code works. The servo moves constantly.
So I tried translating the code to Go using go-rpio. I got to this:
The code runs, but the servo doesn't move at all.
Does anybody know what I'm doing wrong here?
The text was updated successfully, but these errors were encountered: