It is assumed that your Beaglebone is already set up and configured on your network, and that you have already SSHed onto it.
Note that these instructions assume you want PyBBIO/ to live in your home directory. This is not a requirement and can be changed as desired.
The first step is to install the dependencies:
# opkg update && opkg install python-distutils python-setuptools python-mmap python-pyserial
# apt-get update && apt-get install python-serial python-setuptools python-dev
If you are using a BeagleBone Black you will also need the Device Tree compiler. Try:
# which dtc
If nothing is printed, install dtc:
# cd /tmp/ # wget -c https://raw.github.com/RobertCNelson/tools/master/pkgs/dtc.sh # chmod +x dtc.sh # ./dtc.sh
Then you'll need to get the PyBBIO code:
# cd ~ # git clone git://github.com/alexanderhiam/PyBBIO.git
As of version 0.4, PyBBIO is contained in a standard Python package, so it is installed using the normal Python way:
# cd PyBBIO # python setup.py install
PyBBIO should now be installed correctly. Run the blink example to make sure all is well:
# cd examples # python blink.py
And confirm that the LEDs next to the Ethernet jack labelled USR2 and USR3 are blinking back and forth.
Some PyBBIO libraries may have additional dependencies, so be sure to check their documentation pages.
I am working as fast as I can to add support for many of the features that the Beablebone's AM3359 processor has to offer, so you'll want to make sure your version is up to date. Thanks to git this is a very simple process:
# cd ~/PyBBIO # git pull # python setup.py install
PyBBIO can be uninstalled using pip. To install pip on Angstrom:
# opkg install python-pip
To install pip on Debian/Ubuntu:
# apt-get install python-pip
Then to uninstall PyBBIO:
# pip uninstall PyBBIO
You can also uninstall PyBBIO manually by removing the bbio package directory as well as the egg:
# rm -rf /usr/lib/python2.7/site-packages/bbio /usr/lib/python2.7/site-packages/PyBBIO*
Last edited by Alexander Hiam,