Serial.flush() has changed in Arduino 1.0. You can use this instead: while(Serial.available()[GREATER-THAN]0) { Serial.read(); } You can download the parts l...
Jeremy, Blum, element14, arduino, tutorial, serial, processing, programming, graphical, RS-232, USB, baud, rate, TX, RX, comm