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:
2323 # Warning: screen can get very hot at high brightness!
2424 BRIGHTNESS : 20
2525
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)
2727 # To identify your revision: https://github.com/mathoudebine/turing-smart-screen-python/wiki/Hardware-revisions
2828 REVISION : A
Original file line number Diff line number Diff line change 1010# Import only the modules for LCD communication
1111from library .lcd_comm_rev_a import LcdCommRevA , Orientation
1212from library .lcd_comm_rev_b import LcdCommRevB
13+ from library .lcd_simulated import LcdSimulated
1314from library .log import logger
1415
1516# Set your COM port e.g. COM3 for Windows, /dev/ttyACM0 for Linux, etc. or "AUTO" for auto-discovery
1617# COM_PORT = "/dev/ttyACM0"
1718# COM_PORT = "COM5"
1819COM_PORT = "AUTO"
1920
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)
2122# To identify your revision: https://github.com/mathoudebine/turing-smart-screen-python/wiki/Hardware-revisions
2223REVISION = "A"
2324
@@ -49,6 +50,10 @@ def sighandler(signum, frame):
4950 lcd_comm = LcdCommRevB (com_port = "AUTO" ,
5051 display_width = 320 ,
5152 display_height = 480 )
53+ elif REVISION == "SIMU" :
54+ print ("Selected Simulated LCD" )
55+ lcd_comm = LcdSimulated (display_width = 320 ,
56+ display_height = 480 )
5257 else :
5358 print ("ERROR: Unknown revision" )
5459 try :
You can’t perform that action at this time.
0 commit comments