You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moving this bug adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library#16 from the PCD8544 library over to the GFX library since the GFX library handles the text rendering. The issue is that println for a string of text that is exactly the width of characters as the display will print two newlines, one for hitting the edge of the display and another because of the explicit newline in the function. This makes it difficult to display variable strings without carefully keeping track of the length of strings being printed.
I assume to resolve this we need to handle the case where the printed string is the same width as the display and suppress the end of display newline. I haven't looked into the GFX library yet to see if how Arduino's Print class is implemented might complicate catching this state. Opening this bug for now to come back to later though.
The text was updated successfully, but these errors were encountered:
Moving this bug adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library#16 from the PCD8544 library over to the GFX library since the GFX library handles the text rendering. The issue is that println for a string of text that is exactly the width of characters as the display will print two newlines, one for hitting the edge of the display and another because of the explicit newline in the function. This makes it difficult to display variable strings without carefully keeping track of the length of strings being printed.
I assume to resolve this we need to handle the case where the printed string is the same width as the display and suppress the end of display newline. I haven't looked into the GFX library yet to see if how Arduino's Print class is implemented might complicate catching this state. Opening this bug for now to come back to later though.
The text was updated successfully, but these errors were encountered: