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 see the source code here.
To check the connectivity to the Arduino
$ python -m py_arduino.cli.ping /dev/ttyACM0
$ python -m py_arduino.cli.ping /dev/ttyACM0
$ python -m py_arduino.cli.ping --info /dev/ttyACM0
$ python -m py_arduino.cli.ping --debug /dev/ttyACM0
Start an IPython interactive session.
$ python -m py_arduino.cli.ipython /dev/ttyACM0
To use this, you'll need to install ipython with:
$ pip install ipython
Here you can see the interactive session with a customized message. The sessions starts with the Arduino connected.
In this example, we import some constants, set the PIN 13 to OUTPUT
mode,
and write a LOW
first, and then a HIGH
.
Here is a short video showing how to use ipython, and how to dim the onboard LED of Arduino using PWM.
TODO: add documentation! But you can see the source code.
TODO: add documentation! But you can see the source code.
TODO: add documentation! But you can see the source code.
TODO: add documentation! But you can see the source code.