The OpenBCI openFrameworks addon and example code.