Display data in window from Arduino serial port

You could use a StringList as a buffer.

Add the text to the list instead of displaying it right away.
If the buffer is larger than some number, remove the oldest entry (index zero).

Call text() in a loop to draw the whole list.

2 Likes