Nedalo mi to a knihovnu jsem vyzkousel, funguje.
Arduino uno, firmware stdfirmata z arduino ide 2:1.0.5
python knihovna pyfirmata, pyserial
python script:
#!/usr/bin/env python
from pyfirmata import Arduino, util
import time
board = Arduino('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_75533353837')
my_pin=13
pin13 = board.get_pin('d:'+str(my_pin)+'
')
delay=.5
while(1):
pin13.write(1)
time.sleep(delay)
pin13.write(0)
time.sleep(delay)