Skip to content

Commit 7e00293

Browse files
committed
Add support for Turing 12.3"
1 parent 45f9870 commit 7e00293

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

configure.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
SIZE_8_0_INCH = "8.0\""
7676
SIZE_8_8_INCH = "8.8\""
7777
SIZE_8_8_INCH_NEWREV = "8.8\" / 9.2\" (V1.X new HW rev.)"
78+
SIZE_12_3_INCH = "12.3\""
7879

7980
# List of sizes that can be selected
8081
size_list = (
@@ -87,6 +88,7 @@
8788
# SIZE_8_0_INCH, Not implemented yet
8889
SIZE_8_8_INCH,
8990
SIZE_8_8_INCH_NEWREV,
91+
# SIZE_12_3_INCH, Not implemented yet
9092
)
9193

9294
# Maps between config.yaml values and GUI description
@@ -104,6 +106,7 @@
104106
('TUR_USB', SIZE_8_0_INCH): TURING_MODEL,
105107
('TUR_USB', SIZE_8_8_INCH): TURING_MODEL,
106108
('TUR_USB', SIZE_8_8_INCH_NEWREV): TURING_MODEL,
109+
('TUR_USB', SIZE_12_3_INCH): TURING_MODEL,
107110
('WEACT_A', SIZE_3_5_INCH): WEACT_MODEL,
108111
('WEACT_B', SIZE_0_96_INCH): WEACT_MODEL,
109112

@@ -127,6 +130,7 @@
127130
(TURING_MODEL, SIZE_8_0_INCH): 'TUR_USB',
128131
(TURING_MODEL, SIZE_8_8_INCH): 'C',
129132
(TURING_MODEL, SIZE_8_8_INCH_NEWREV): 'TUR_USB',
133+
(TURING_MODEL, SIZE_12_3_INCH): 'TUR_USB',
130134
(USBPCMONITOR_MODEL, SIZE_3_5_INCH): 'A',
131135
(USBPCMONITOR_MODEL, SIZE_5_INCH): 'A',
132136
(WEACT_MODEL, SIZE_0_96_INCH): 'WEACT_B',

library/lcd/lcd_comm_turing_usb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
0x0080: (800, 1280), # Turing 8.0"
4646
0x0088: (480, 1920), # Turing 8.8"
4747
0x0092: (462, 1920), # Turing 9.2"
48+
0x0123: (720, 1920), # Turing 12.3"
4849
}
4950

5051
MAX_CHUNK_BYTES = 1024 * 1024 # Data sent to screen cannot exceed 1024MB or there will be a timeout
@@ -915,7 +916,7 @@ def _write_file_command(dev, file_path: str) -> bool:
915916
return False
916917

917918

918-
# This class is for Turing Smart Screen newer models (4.6" / 5.2" / 8" / 8.8" HW rev 1.x / 9.2")
919+
# This class is for Turing Smart Screen newer models (4.6" / 5.2" / 8" / 8.8" HW rev 1.x / 9.2" / 12.3")
919920
# These models are not detected as serial ports but as (Win)USB devices
920921
class LcdCommTuringUSB(LcdComm):
921922
def __init__(self, com_port: str = "AUTO", display_width: int = 480, display_height: int = 1920,

0 commit comments

Comments
 (0)