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

Servos.attach does not work #11

Open
filloz opened this issue Jan 12, 2014 · 1 comment
Open

Servos.attach does not work #11

filloz opened this issue Jan 12, 2014 · 1 comment

Comments

@filloz
Copy link

filloz commented Jan 12, 2014

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

@tdimov93
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants