Hi,
I wrote a Python library for BBB based on Bonescript.
It has the following functions:
is_capemgr() - check if cape manager active
load_dt(name) - check if function loaded in slots
writeTextFile(file, value, callback) - write value to text file
readTextFile(file, callback) - read value from text file
getPin(pin) - get pin with its options and details
pinMode (pin, direction, mux, pullup, slew, callback) - set pin mode
digitalWrite (pin, value) - write digital value to pin
digitalRead(pin, callback) - read digital value from pin
analogRead(pin, callback) - read analog value from pin
analogWrite(pin, value, freq, callback) - write analog value (0.0 - 1.0) to pin
cleanUp(pin) - unexport pin
getPlatform(callback) - get platform details
restore() - restore USR LED (0-3) functions
Download the zip and run the example
http://certeza.nl/files/gpio_lib_v04.zip
Have fun!