py-arduino access Arduino from Python
How to install py-arduino
Common problems
py_arduino.cli.*: How to use
py_arduino.cli.*: Reference
~/$ git clone https://github.com/hgdeoro/py-arduino.git
~/$ cd py-arduino
~/py-arduino$
~/py-arduino$ virtualenv -p python2.7 virtualenv
~/py-arduino$ . virtualenv/bin/activate
(virtualenv)~/py-arduino$ pip install -r requirements.txt
(virtualenv)~/py-arduino$
Open the sketch at py-arduino/sketches/py_arduino/py_arduino.ino
,
verify and upload to Arduino.
(virtualenv)~/py-arduino$ python -m py_arduino.cli.ping /dev/ttyACM0
Ping sent... OK - Time=18.295 ms
Ping sent... OK - Time=19.658 ms
Ping sent... OK - Time=23.358 ms
^C
(virtualenv)~/py-arduino$
See: How to use py_arduino.cli.*.
If you have problems, check Common problems, file a bug or contact me.