I use the serial communication’s sketch(http://lizastark.com/cclabfall2012/?p=982) and “translate” the processing code into OF.
Here the git hub link
The most difficulty is the “translation” part. I used documentation on openFrameworks to figure out most of the code. http://www.openframeworks.cc/documentation/.
And I also found some useful resources to understand easier.