Virtuino Forum

Full Version: multiline display
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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)