Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multiline display
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
      String L1 = "1 line";
      String L2 = "2 line";
      String str = String(L1 + '\n' + L2);
      sendValue(pin3, str);

Serial.print shows strings in two lines but multiline display shows nothing
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)

Forum Jump:

Users browsing this thread: 1 Guest(s)