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

Set servo to zero python script not working #112

Open
FullCapital opened this issue Sep 25, 2023 · 0 comments
Open

Set servo to zero python script not working #112

FullCapital opened this issue Sep 25, 2023 · 0 comments

Comments

@FullCapital
Copy link

I'm on this page of the instructions, and I'm getting the following error when I run $sudo python3 servo_zeroing.py

Set servo to zero
Traceback (most recent call last):
File "servo_zeroing.py", line 14, in
Servo(pin).angle(10)
File "/usr/local/lib/python3.7/dist-packages/robot_hat-1.0.4-py3.7.egg/robot_hat/servo.py", line 12, in init
self.pwm.period(4095)
AttributeError: 'str' object has no attribute 'period'

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

1 participant