Reply to thread

You should not use delay as it halts the whole arduino for that time. In the meantime data comes in via the serial port and you cant use it as the arduino is just doing nothing. The buffers overfow and you loose all the infos.

So better to use millis().


http://arduino.cc/en/Tutorial/BlinkWithoutDelay


Top Bottom