import processing.serial.*; Serial myPort; // The serial port int data; // text buffer to be displayed String textBuff = ""; // timing handling for computer generated messages int j=0; // input text list String list[] = { "" }; // to hold text file int listPos = 500; void setup() { // serial init println(Serial.list()); // I know that the first port in the serial list on my mac // is always my Keyspan adapter, so I open Serial.list()[0]. // Open whatever port is the one you're using. myPort = new Serial(this, Serial.list()[1], 4800); // graphics init size(200, 200); loadText(); // source text, when speaking with my voice // //init receipt printer myPort.write(27); myPort.write("@"); }; void draw() { sendNextLine(); line(width/2, height/2, millis()%width, millis()%height); delay(2000); } void sendNextLine() { //while(textBuff.length()