I am trying to create a live graph of accelerometer readings using the gwoptics library. The problem is I am not sure the best way pass the serial readings to the gwoptics eq class. The only way I could get it to work, is to read the serial string inside the eq class definition. However this seems very sloppy, ideally I would like to read the serial string in draw(), split it up and pass each axis variable to a respective eq class, I just can't get it to work. I modified the example code provided with the library. The the "working" code is below. I am pretty new to programming and processing so any help at all is appreciated, thanks.