Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Supported operating systems : macOS, Windows, Linux (incl. Raspberry Pi), basica
| ✅ Turing Smart Screen / TURZX |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <img src="res/docs/turing.webp" width="30%" height="30%"/> <img src="res/docs/turing46inch.png" width="30%" height="30%"/> <img src="res/docs/turing5inch.png" width="30%" height="30%"/> <br/> <img src="res/docs/turing2inch.webp" width="30%" height="30%"/> <img src="res/docs/turing8inch.png" width="30%" height="30%"/> <img src="res/docs/turing8inch.webp" width="30%" height="30%"/> |
| All available sizes and hardware revisions supported: **2.1" / 2.8" / 3.5" / 4.6" / 5" / 5.2" / 8.0" / 8.8" / 9.2" / 12.3"** <br/>UART and USB protocols supported. Note: no video or storage support for now |
| All available sizes and hardware revisions supported: **2.1" / 2.8" / 2.8" round / 3.5" / 4.6" / 5" / 5.2" / 8.0" / 8.8" / 9.2" / 12.3"** <br/>UART and USB protocols supported. Note: no video or storage support for now |

| ✅ XuanFang 3.5" | ✅ [UsbPCMonitor 3.5" / 5"](https://aliexpress.com/item/1005003931363455.html) | ✅ Kipye Qiye Smart Display 3.5" |
|---------------------------------------------------|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|
Expand Down
16 changes: 11 additions & 5 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@
SIZE_8_8_INCH = "8.8\""
SIZE_8_8_INCH_NEWREV = "8.8\" / 9.2\" (V1.X new HW rev.)"
SIZE_12_3_INCH = "12.3\""
SIZE_2_8_ROUND_USB = "2.8\" round (V1.X new HW rev.)"

# List of sizes that can be selected
size_list = (
SIZE_0_96_INCH,
SIZE_2_x_INCH,
SIZE_2_8_ROUND_USB,
SIZE_3_5_INCH,
SIZE_4_6_INCH,
SIZE_5_INCH,
Expand All @@ -107,6 +109,7 @@
('TUR_USB', SIZE_8_8_INCH): TURING_MODEL,
('TUR_USB', SIZE_8_8_INCH_NEWREV): TURING_MODEL,
('TUR_USB', SIZE_12_3_INCH): TURING_MODEL,
('TUR_USB', SIZE_2_8_ROUND_USB): TURING_MODEL,
('WEACT_A', SIZE_3_5_INCH): WEACT_MODEL,
('WEACT_B', SIZE_0_96_INCH): WEACT_MODEL,

Expand All @@ -131,6 +134,7 @@
(TURING_MODEL, SIZE_8_8_INCH): 'C',
(TURING_MODEL, SIZE_8_8_INCH_NEWREV): 'TUR_USB',
(TURING_MODEL, SIZE_12_3_INCH): 'TUR_USB',
(TURING_MODEL, SIZE_2_8_ROUND_USB): 'TUR_USB',
(USBPCMONITOR_MODEL, SIZE_3_5_INCH): 'A',
(USBPCMONITOR_MODEL, SIZE_5_INCH): 'A',
(WEACT_MODEL, SIZE_0_96_INCH): 'WEACT_B',
Expand Down Expand Up @@ -433,13 +437,15 @@ def load_config_values(self):

# Guess display size from theme in the configuration
size = get_theme_size(self.config['config']['THEME'])
size = size.replace(_SIZE_2_1_INCH, SIZE_2_x_INCH) # If a theme is for 2.1" then it is for all 2.x"
size = size.replace(_SIZE_2_8_INCH, SIZE_2_x_INCH) # If a theme is for 2.8" then it is for all 2.x"
size = size.replace(_SIZE_9_2_INCH,
SIZE_8_8_INCH_NEWREV) # If a theme is for 9.2" then it is for 8.8"/9.2" (new rev)
if size == _SIZE_2_1_INCH or size == _SIZE_2_8_INCH:
size = SIZE_2_x_INCH # If a theme is for 2.1" or 2.8" then it is for all 2.x"
elif size == _SIZE_9_2_INCH:
size = SIZE_8_8_INCH_NEWREV # If a theme is for 9.2" then it is for 8.8"/9.2" (new rev)
try:
if size == SIZE_8_8_INCH and self.config['display']['REVISION'] == 'TUR_USB':
size = SIZE_8_8_INCH_NEWREV
if size == SIZE_2_x_INCH and self.config['display']['REVISION'] == 'TUR_USB':
size = SIZE_2_8_ROUND_USB
self.size_cb.set(size)
except:
self.size_cb.current(0)
Expand Down Expand Up @@ -587,7 +593,7 @@ def on_size_change(self, e=None):
size = self.size_cb.get()

# For '2.1" / 2.8"' size, search for themes of both sizes
if size == SIZE_2_x_INCH:
if size == SIZE_2_x_INCH or size == SIZE_2_8_ROUND_USB:
themes = get_themes(_SIZE_2_1_INCH)
themes += get_themes(_SIZE_2_8_INCH)
# For 8.8" & 9.2" sizes, search for themes of both sizes
Expand Down
3 changes: 2 additions & 1 deletion library/lcd/lcd_comm_turing_usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
VENDOR_ID = 0x1cbe

# Map of display supported product IDs and their respective resolution in portrait mode
PRODUCT_ID = {0x0046: (320, 960), # Turing 4.6"
PRODUCT_ID = {0x0028: (480, 480), # Turing 2.8" round (USB)
0x0046: (320, 960), # Turing 4.6"
0x0050: (720, 1280), # Turing 5.2"
0x0080: (800, 1280), # Turing 8.0"
0x0088: (480, 1920), # Turing 8.8"
Expand Down