I have created two simple externals for the analog pins and gpio's of the Beaglebone Black.

https://github.com/tomchaossen/Beaglebone-PureData

the analog externals loads automaticaly the DeviceTree Overlay for the AnalogPins. with the message "getvalue" followed by the Analog port number it outputs the current value on the Pin.

the gpio external export the pins with the message "export" followed ba the gpio number, unexports with the message "unexport" and number. the message "direction" followed by the number and an 1 for input and a 0 for output sets the direction. the message "setvalue" followed by the gpio number and the value 0 or 1 sets the port hi and low. and finally the message "getvalue" followed by the port number spits the value out.

warning: non-existing pins crashes all.. i will fix this but not now.=)