serial.print

I am new in Arduino, and about to modify the code in order to interface it to an OSD.I found this in the reference guide:"The Serial.Print function puts data into a buffer. It will wait for one character to send, before going on to the next character. However the function returns before sending the last character. "It really means, that the program just stops and waiting for the characters to send? If there are long strings, it could be really long time.If I understand well, the tasks in the main loop are running one after the other. If one stops, all stops. So all tasks are just waiting for a string transmitting routine?Hard to believe, considering that the serial input is interrupt based and has a long buffer.If that's the case, is there an output buffer library?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 3D Robotics
    I'm not sure how serial.print is handled, but there is no delay and no waiting. It just goes into the buffer and the code moves on, whether the text is output or not. No tasks wait for string transmission.
This reply was deleted.

Activity