|
35 | 35 | from library.lcd.lcd_comm_rev_b import LcdCommRevB |
36 | 36 | from library.lcd.lcd_comm_rev_c import LcdCommRevC |
37 | 37 | from library.lcd.lcd_comm_rev_d import LcdCommRevD |
| 38 | +from library.lcd.lcd_comm_turing_usb import LcdCommTuringUSB |
38 | 39 | from library.lcd.lcd_comm_weact_a import LcdCommWeActA |
39 | 40 | from library.lcd.lcd_comm_weact_b import LcdCommWeActB |
40 | 41 | from library.lcd.lcd_simulated import LcdSimulated |
|
52 | 53 | # - D for Kipye Qiye Smart Display 3.5" |
53 | 54 | # - SIMU for simulated display (image written in screencap.png) |
54 | 55 | # To identify your smart screen: https://github.com/mathoudebine/turing-smart-screen-python/wiki/Hardware-revisions |
55 | | -REVISION = "A" |
| 56 | +REVISION = "USB_C" |
56 | 57 |
|
57 | 58 | # Display width & height in pixels for portrait orientation |
58 | 59 | # /!\ Do not switch width/height here for landscape, use lcd_comm.SetOrientation below |
59 | 60 | # 320x480 for 3.5" models |
60 | 61 | # 480x480 for 2.1" models |
61 | 62 | # 480x800 for 5" models |
62 | 63 | # 480x1920 for 8.8" models |
63 | | -WIDTH, HEIGHT = 320, 480 |
| 64 | +WIDTH, HEIGHT = 480, 1920 |
64 | 65 |
|
65 | 66 | assert WIDTH <= HEIGHT, "Indicate display width/height for PORTRAIT orientation: width <= height" |
66 | 67 |
|
@@ -101,6 +102,9 @@ def sighandler(signum, frame): |
101 | 102 | elif REVISION == "WEACT_B": |
102 | 103 | logger.info("Selected Hardware WeAct Studio Display FS V1 0.96\"") |
103 | 104 | lcd_comm = LcdCommWeActB(com_port=COM_PORT, display_width=WIDTH, display_height=HEIGHT) |
| 105 | + elif REVISION == "USB_C": |
| 106 | + logger.info("Selected Hardware Revision USB C (Turing Smart Screen 8.8\" or 9.2\")") |
| 107 | + lcd_comm = LcdCommTuringUSB(com_port=COM_PORT, display_width=WIDTH, display_height=HEIGHT) |
104 | 108 | elif REVISION == "SIMU": |
105 | 109 | logger.info("Selected Simulated LCD") |
106 | 110 | lcd_comm = LcdSimulated(display_width=WIDTH, display_height=HEIGHT) |
|
0 commit comments