Skip to content

Commit 749b53c

Browse files
authored
Merge pull request #3183 from adafruit/texteditor-24-featherwing
CircuitPython Text Editor 2.4" FeatherWing
2 parents 464073d + 490f787 commit 749b53c

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

CircuitPython_Text_Editor/adafruit_editor/dang.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ def _blocking():
3333
pass
3434

3535

36+
# 3.5" display (480x320): LINES = 24, COLS = 80
3637
LINES = 24
3738
COLS = 80
39+
# 2.4" display (320x240): LINES = 19, COLS = 53
40+
# LINES = 19
41+
# COLS = 53
3842

3943
special_keys = {
4044
"\x1b": ..., # all prefixes of special keys must be entered as Ellipsis

CircuitPython_Text_Editor/code.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
# SPDX-License-Identifier: MIT
44
import traceback
55
from adafruit_editor import editor, picker
6+
# 3.5" FeatherWing (original)
67
from adafruit_featherwing import tft_featherwing_35
8+
# 2.4" FeatherWing V2
9+
# from adafruit_featherwing import tft_featherwing_24
710
import terminalio
811
import displayio
912
from 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)
1721
tft_featherwing = tft_featherwing_35.TFTFeatherWing35V2()
22+
# 2.4" FeatherWing V2
23+
# tft_featherwing = tft_featherwing_24.TFTFeatherWing24V2()
1824
display = tft_featherwing.display
1925
display.rotation = 180
2026

0 commit comments

Comments
 (0)