File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ display:
23
23
# Warning: screen can get very hot at high brightness!
24
24
BRIGHTNESS : 20
25
25
26
- # Display revision: A or B (for "flagship" version, use B)
26
+ # Display revision: A or B (for "flagship" version, use B) or SIMU for simulated LCD (image written in screencap.png)
27
27
# To identify your revision: https://github.com/mathoudebine/turing-smart-screen-python/wiki/Hardware-revisions
28
28
REVISION : A
Original file line number Diff line number Diff line change 10
10
# Import only the modules for LCD communication
11
11
from library .lcd_comm_rev_a import LcdCommRevA , Orientation
12
12
from library .lcd_comm_rev_b import LcdCommRevB
13
+ from library .lcd_simulated import LcdSimulated
13
14
from library .log import logger
14
15
15
16
# Set your COM port e.g. COM3 for Windows, /dev/ttyACM0 for Linux, etc. or "AUTO" for auto-discovery
16
17
# COM_PORT = "/dev/ttyACM0"
17
18
# COM_PORT = "COM5"
18
19
COM_PORT = "AUTO"
19
20
20
- # Display revision: A or B (for "flagship" version, use B)
21
+ # Display revision: A or B (for "flagship" version, use B) or SIMU for simulated LCD (image written in screencap.png)
21
22
# To identify your revision: https://github.com/mathoudebine/turing-smart-screen-python/wiki/Hardware-revisions
22
23
REVISION = "A"
23
24
@@ -49,6 +50,10 @@ def sighandler(signum, frame):
49
50
lcd_comm = LcdCommRevB (com_port = "AUTO" ,
50
51
display_width = 320 ,
51
52
display_height = 480 )
53
+ elif REVISION == "SIMU" :
54
+ print ("Selected Simulated LCD" )
55
+ lcd_comm = LcdSimulated (display_width = 320 ,
56
+ display_height = 480 )
52
57
else :
53
58
print ("ERROR: Unknown revision" )
54
59
try :
You can’t perform that action at this time.
0 commit comments