Virtuino Forum
multiline display - Printable Version

+- Virtuino Forum (https://virtuino.com/forum)
+-- Forum: Virtuino (https://virtuino.com/forum/forumdisplay.php?fid=1)
+--- Forum: Virtuino IoT (https://virtuino.com/forum/forumdisplay.php?fid=2)
+--- Thread: multiline display (/showthread.php?tid=1182)



multiline display - krzycho - 01-16-2023

I need to make a mini terminal for the last 6-8 strings (FIFO) i tried to do it on multilines value display but i can't send correct strings with \n
Code:
      String L1 = "1 line";
      String L2 = "2 line";
      String str = String(L1 + '\n' + L2);
      sendValue(pin3, str);
      Serial.print(str);

Serial.print shows strings in two lines but multiline display shows nothing


RE: multiline display - iliaslamprou - 01-16-2023

Hi, 
this happens because the \n is not recognized as the special character \n = char code 10.
I think the only reason for a text to contain this combination is the change line usage
I have added this feauture to the next update.

(for now check the combination \n\r)