thearn/Python-Arduino-Command-API

Servos.attach does not work

filloz opened this issue · 1 comments

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

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.