py-arduino access Arduino from Python
How to install py-arduino
Common problems
py_arduino.cli.*: How to use
py_arduino.cli.*: Reference
You can start using py-arduino from the command line interface (cli) without actually writing Python code (see the reference for furder information). There are scripts to:
To use these scripts, you need to:
You must activate the virtualenv to use py-arduino, using something like:
source /path/to/py-arduino/virtualenv/bin/activate
or
. /path/to/py-arduino/virtualenv/bin/activate
(note the space between the . and the path to activate).
After activating the virtualenv, your prompt will chage: a (virtualenv) will be prepended.
If you cd
to the py-arduino directory, you won't need to set the PYTHONPATH, the scripts just works:
If you want to run py-arduino from other directories, you'll have to set PYTHONPATH: