Update 'CARDPUTER CircuitPython/full_display_test.py'

This commit is contained in:
2025-03-05 11:37:48 +00:00
parent 7956c0453d
commit 1990806aab

View File

@@ -24,5 +24,12 @@ while True:
elif key == "CTRLD":
text = "Press CTRL+D to clear text\n\n"
else:
## WRAPPING
## calculate wrapping when entering a character
lines = text.split("\n")
current_line = lines[len(lines)-1]
if len(current_line) > 35:
text=text+"\n" # <- start a new line here
##############################################
text = text+key
text_area.text = text