-
-
Notifications
You must be signed in to change notification settings - Fork 237
Simulated display
Matthieu Houdebine edited this page Sep 8, 2022
·
7 revisions
If you do not have a Turing LCD for now, or do not want to use it at some point, you can always use the "simulated LCD" mode included with this project.
The "simulated LCD" mode works for System Monitor and standalone code.
When enabled, all bitmaps will be written to a file on the filesystem instead of being sent to a real display.
This allow to save screen captures, and to easily test themes during creation.
In config.yaml
change REVISION
to REVISION: SIMU
then start the program.
from library.lcd_simulated import LcdSimulated
lcd_comm = LcdSimulated(display_width=320,
display_height=480)
A bitmap named screencap.png
will be created and updated like the real display would.
You can open this bitmap and copy it to save a screenshot.
A webserver will also be started, serving a webpage displaying screencap.png
with auto-refresh.