Update 'CARDPUTER CircuitPython/full_display_test.py'

This commit is contained in:
2025-03-04 23:18:11 +00:00
parent 34767d8f69
commit 381b980a45

View File

@@ -20,9 +20,9 @@ board.DISPLAY.root_group = text_area
while True: while True:
key = keyb.scan() key = keyb.scan()
if key == "BACKSP": if key == "BACKSP":
text = text[:-1] text = text[:-1]
elif key == "CTRLD": elif key == "CTRLD":
text = "Press CTRL+D to clear text\n\n" text = "Press CTRL+D to clear text\n\n"
else: else:
text = text+key text = text+key
text_area.text = text text_area.text = text