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" / 3.5" / 4.6" / 5" / 5.2" / 8.0" / 8.8" / 9.2" / 11.3" / 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
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ display:
# Display revision:
# - A for Turing 3.5" and UsbPCMonitor 3.5"/5"
# - B for Xuanfang 3.5" (inc. flagship)
# - C for Turing 2.1"/2.8"/5"/8.8"
# - C for Turing 2.1"/2.8"/5"/8.8"/11.3"
# - D for Kipye Qiye Smart Display 3.5"
# - TUR_USB for Turing HW revisions 1.x: 4.6"/5.2"/8.0"/8.8"/9.2"
# - WEACT_A for WeAct Studio Display FS V1 3.5"
Expand Down
9 changes: 9 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
SIZE_8_INCH = "8\""
SIZE_8_8_INCH = "8.8\""
SIZE_8_8_INCH_NEWREV = "8.8\" / 9.2\" (V1.X new HW rev.)"
SIZE_11_3_INCH = "11.3\""
SIZE_12_3_INCH = "12.3\""
SIZE_2_8_INCH_NEWREV = "2.8\" round (V1.X new HW rev.)"

Expand All @@ -91,6 +92,7 @@
SIZE_8_INCH,
SIZE_8_8_INCH,
SIZE_8_8_INCH_NEWREV,
SIZE_11_3_INCH,
SIZE_12_3_INCH,
)

Expand All @@ -103,6 +105,7 @@
('C', SIZE_2_x_INCH): TURING_MODEL,
('C', SIZE_5_INCH): TURING_MODEL,
('C', SIZE_8_8_INCH): TURING_MODEL,
('C', SIZE_11_3_INCH): TURING_MODEL,
('D', SIZE_3_5_INCH): KIPYE_MODEL,
('TUR_USB', SIZE_4_6_INCH): TURING_MODEL,
('TUR_USB', SIZE_5_2_INCH): TURING_MODEL,
Expand All @@ -122,6 +125,7 @@
('SIMU', SIZE_5_2_INCH): SIMULATED_MODEL,
('SIMU', SIZE_8_INCH): SIMULATED_MODEL,
('SIMU', SIZE_8_8_INCH): SIMULATED_MODEL,
('SIMU', SIZE_11_3_INCH): SIMULATED_MODEL,
}
# This map is used to write the correct config.yaml "REVISION" from selected smart screen model and size
model_and_size_to_revision_map = {
Expand All @@ -133,6 +137,7 @@
(TURING_MODEL, SIZE_5_INCH): 'C',
(TURING_MODEL, SIZE_8_INCH): 'TUR_USB',
(TURING_MODEL, SIZE_8_8_INCH): 'C',
(TURING_MODEL, SIZE_11_3_INCH): 'C',
(TURING_MODEL, SIZE_8_8_INCH_NEWREV): 'TUR_USB',
(TURING_MODEL, SIZE_12_3_INCH): 'TUR_USB',
(TURING_MODEL, SIZE_2_8_INCH_NEWREV): 'TUR_USB',
Expand All @@ -150,6 +155,7 @@
(SIMULATED_MODEL, SIZE_5_2_INCH): 'SIMU',
(SIMULATED_MODEL, SIZE_8_INCH): 'SIMU',
(SIMULATED_MODEL, SIZE_8_8_INCH): 'SIMU',
(SIMULATED_MODEL, SIZE_11_3_INCH): 'SIMU',
}
hw_lib_map = {"AUTO": "Automatic", "LHM": "LibreHardwareMonitor (admin.)", "PYTHON": "Python libraries",
"STUB": "Fake random data", "STATIC": "Fake static data"}
Expand Down Expand Up @@ -629,6 +635,9 @@ def on_size_change(self, e=None):
elif size == SIZE_8_8_INCH_NEWREV or size == SIZE_8_8_INCH:
themes = get_themes(SIZE_8_8_INCH)
themes += get_themes(_SIZE_9_2_INCH)
elif size == SIZE_11_3_INCH:
themes = get_themes(SIZE_11_3_INCH)
themes += get_themes(SIZE_8_8_INCH)
else:
themes = get_themes(size)

Expand Down
2 changes: 2 additions & 0 deletions library/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def _get_theme_size() -> tuple[int, int]:
return 800, 1280
elif config.THEME_DATA["display"].get("DISPLAY_SIZE", '') == '8.8"':
return 480, 1920
elif config.THEME_DATA["display"].get("DISPLAY_SIZE", '') == '11.3"':
return 440, 1920
elif config.THEME_DATA["display"].get("DISPLAY_SIZE", '') == '9.2"':
return 480, 1920 # 9.2" displays are 1920x462 but using 1920x480 to be compatible with 8.8" themes
elif config.THEME_DATA["display"].get("DISPLAY_SIZE", '') == '12.3"':
Expand Down
Loading
Loading