Skip to content

Add config option RESET_ON_STARTUP #828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ display:
# Set to true to reverse display orientation (landscape <-> reverse landscape, portrait <-> reverse portrait)
# Note: Display basic orientation (portrait or landscape) is defined by the theme you have selected
DISPLAY_REVERSE: false

# Reset display on startup: true/false
# By default, this program resets the display on startup, in case it is in a degraded state from previous runs.
# This behavior causes the display to disconnect/reconnect, and the COM port to change.
# On some displays (like rev. A) it can be an issue, in this case change the value to "false".
RESET_ON_STARTUP: true
6 changes: 5 additions & 1 deletion library/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ def __init__(self):

def initialize_display(self):
# Reset screen in case it was in an unstable state (screen is also cleared)
self.lcd.Reset()
# Can be disabled by config. option
if config.CONFIG_DATA["display"].get("RESET_ON_STARTUP", False):
self.lcd.Reset()
else:
logger.debug("RESET_ON_STARTUP is false: display will not be reset")

# Send initialization commands
self.lcd.InitializeComm()
Expand Down
Loading