Skip to content

Set servo to zero python script not working #112

@FullCapital

Description

@FullCapital

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions