Skip to content
alexanderhiam edited this page May 30, 2012 · 41 revisions

PyBBIO is a Python library for hardware IO support on the TI Beaglebone.

It is designed to mimic the Arduino API to create a friendly and familiar development environment.

###Documentation

##Installing Installation is quite simple. 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 changed as desired.

The first step is to install the dependencies:

# opkg update && opkg install python-mmap python-pyserial

Then you'll need to get the code:

# cd ~
# git clone git://github.com/alexanderhiam/PyBBIO.git

The next step is to run the install script:

# cd PyBBIO
# sh install.sh -i

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.

##Updating 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
# sh install -i

##Uninstalling If you need to uninstall PyBBIO you can use the install.sh script:

# cd ~/PyBBIO
# sh install.sh -u

##Troubleshooting Something not working? Chances are I don't know about it yet, so open an issue or send me an email at ahiam@marlboro.edu with all the details and I'll do my best to fix it.