Here's my reconstructed reply.I still maintain that there is no lcd.println() function. The fact that you can include such an undocumented function in a sketch and not trigger an error message is due to the interaction between the various libraries. The compiler does the best that it can with the information that it has, but the net result is not a 'new line'. What you wind up with is the classic case of an undocumented function resulting in an undesired result.
I'm not sure how 'scrolling' got into the discussion but this does bring up another topic that we might want to address. Your use of the term 'scroll', my interpretation of the term 'scroll', and the use of the term 'scroll lock' on most keyboards all refer to the vertical movement of characters on a display. The LiquidCrystal documentation, however, uses the term with respect to horizontal movement of the characters on the display which probably confuses at least some people. I prefer to use the term 'shift' which coincidently is how the action is described in all of the LCD controller datasheets.Even the 24 hour TV news people, the ones who manage to reduce our wide screen TV displays to the size of a 1950's 7" set, call this movement a 'crawl' rather than a 'scroll'.[/color]
In reality there is no lcd.print() function either.
It is very unfortunate the the LiquidCrystal library use the term "scroll" instead of "shift" in the api.
Anyone who cannot inherently figure out where the funny characters come from when using lcd.println() probably doesn't know or care about classes and the fact that the print class is how things actually get displayed on the LCD.It may be true that println() can be made to work as expected with other LCD libraries but the fact remains that at the present time it is not implemented in the LiquidCrystal library. Therefore it's use in a sketch that incorporates the LiquidCrystal library is incorrect.Don
saying there is no println() or that println() is not implemented is factually incorrect.
Quotesaying there is no println() or that println() is not implemented is factually incorrect.I don't think I ever said that or at least I never meant to say that. I keep on emphasizing that it is lcd.println() that is not supported. Take another look at reply #17.I think we finally agree.Don
S-2) Tried to use lcd.println. There is no such function so you will see two strange characters with your text
S-2 is already there, but I'd change the language from:"There is no such function" which is incorrect to"It is not supported by most of the lcd libraries including the LiquidCrystal library that ships with the IDE".
I still maintain that there is no lcd.println() function.
It may be true that println() can be made to work as expected with other LCD libraries but the fact remains that at the present time it is not implemented in the LiquidCrystal library. Therefore it's use in a sketch that incorporates the LiquidCrystal library is incorrect.[/color]
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16