瀏覽代碼

Update 'CARDPUTER CircuitPython/full_display_test.py'

cube 9 月之前
父節點
當前提交
381b980a45
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      CARDPUTER CircuitPython/full_display_test.py

+ 2
- 2
CARDPUTER CircuitPython/full_display_test.py 查看文件

20
 while True:
20
 while True:
21
     key = keyb.scan()
21
     key = keyb.scan()
22
     if key == "BACKSP":
22
     if key == "BACKSP":
23
-        text = text[:-1]
23
+        text = text[:-1] 
24
     elif key == "CTRLD":
24
     elif key == "CTRLD":
25
         text = "Press CTRL+D to clear text\n\n"
25
         text = "Press CTRL+D to clear text\n\n"
26
     else:
26
     else:
27
         text = text+key
27
         text = text+key
28
-    text_area.text = text
28
+    text_area.text = text