Python-Arduino-Command-API icon indicating copy to clipboard operation
Python-Arduino-Command-API copied to clipboard

Servos.attach does not work

Open filloz opened this issue 11 years ago • 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

filloz avatar Jan 12 '14 21:01 filloz

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.

tdimov93 avatar Feb 15 '17 13:02 tdimov93