Skip to content

Commit 9f4e134

Browse files
committed
Add docs for simulated LCD mode
1 parent 37b0ad8 commit 9f4e134

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

res/fonts/generale-mono/LICENSE.txt

100755100644
File mode changed.

simple-program.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
# Import only the modules for LCD communication
1111
from library.lcd_comm_rev_a import LcdCommRevA, Orientation
1212
from library.lcd_comm_rev_b import LcdCommRevB
13+
from library.lcd_simulated import LcdSimulated
1314
from 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"
1819
COM_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
2223
REVISION = "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:

0 commit comments

Comments
 (0)