Hi all,
I have a tablet that communicates with a microprocessor by means of a serial line. I want to display the strings coming from the microprocessor on a label, but when they arrive the strings are arranged in a disorderly fashion in the label, while I wish the new strings can erase the previous one and the new text always departed from the top spot in the upper left corner of the label. I started using "UsbSerialDemo." Anyone have any suggestions?
Thank you in advance
This code is correct. It will replace the content and set the new string. If you are seeing the old text under it then there is a problem somewhere else.
In the non prefix mode, the data may arrive in parts, it is necessary to combine, then set to label when complete. To know when complete, an end marker is often used. Perhaps the AsyncStreams Text, will work better. Erel has a tutorial on that.