Skip to content

Servos.attach does not work #11

Open

Description

@filloz

Hi,
I'd like to control one servos with your python module.
I have a MacBook and I'm trying to use python with arduino Yun.
I inizialize the board with

board = Arduino("9600",port = "/dev/tty.usbmodemfd131")

and all is ok
when i try to inizialize Servos typing:

board.Servos.attach(9)

the python sheel freezes
What do I wrong ?
thanks
Filippo

Activity

  1. tdimov93 commented on Feb 15, 2017

    @tdimov93

    I have a similar issue, except the terminal doesn't freeze but throws an error instead :

    File "/usr/local/lib/python2.7/dist-packages/Arduino/arduino.py", line 451, in attach
    position = int(rd)
    ValueError: invalid literal for int() with base 10: '\x85'

    The literal that's causing problems is different everytime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions