File tree Expand file tree Collapse file tree
CircuitPython_Text_Editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,8 +33,12 @@ def _blocking():
3333 pass
3434
3535
36+ # 3.5" display (480x320): LINES = 24, COLS = 80
3637LINES = 24
3738COLS = 80
39+ # 2.4" display (320x240): LINES = 19, COLS = 53
40+ # LINES = 19
41+ # COLS = 53
3842
3943special_keys = {
4044 "\x1b " : ..., # all prefixes of special keys must be entered as Ellipsis
Original file line number Diff line number Diff line change 33# SPDX-License-Identifier: MIT
44import traceback
55from adafruit_editor import editor , picker
6+ # 3.5" FeatherWing (original)
67from adafruit_featherwing import tft_featherwing_35
8+ # 2.4" FeatherWing V2
9+ # from adafruit_featherwing import tft_featherwing_24
710import terminalio
811import displayio
912from adafruit_display_text .bitmap_label import Label
@@ -14,7 +17,10 @@ def print(message):
1417 usb_cdc .data .write (f"{ message } \r \n " .encode ("utf-8" ))
1518
1619
20+ # 3.5" FeatherWing (original)
1721tft_featherwing = tft_featherwing_35 .TFTFeatherWing35V2 ()
22+ # 2.4" FeatherWing V2
23+ # tft_featherwing = tft_featherwing_24.TFTFeatherWing24V2()
1824display = tft_featherwing .display
1925display .rotation = 180
2026
You can’t perform that action at this time.
0 commit comments