File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -69,3 +69,9 @@ display:
69
69
# Set to true to reverse display orientation (landscape <-> reverse landscape, portrait <-> reverse portrait)
70
70
# Note: Display basic orientation (portrait or landscape) is defined by the theme you have selected
71
71
DISPLAY_REVERSE : false
72
+
73
+ # Reset display on startup: true/false
74
+ # By default, this program resets the display on startup, in case it is in a degraded state from previous runs.
75
+ # This behavior causes the display to disconnect/reconnect, and the COM port to change.
76
+ # On some displays (like rev. A) it can be an issue, in this case change the value to "false".
77
+ RESET_ON_STARTUP : true
Original file line number Diff line number Diff line change @@ -90,7 +90,11 @@ def __init__(self):
90
90
91
91
def initialize_display (self ):
92
92
# Reset screen in case it was in an unstable state (screen is also cleared)
93
- self .lcd .Reset ()
93
+ # Can be disabled by config. option
94
+ if config .CONFIG_DATA ["display" ].get ("RESET_ON_STARTUP" , False ):
95
+ self .lcd .Reset ()
96
+ else :
97
+ logger .debug ("RESET_ON_STARTUP is false: display will not be reset" )
94
98
95
99
# Send initialization commands
96
100
self .lcd .InitializeComm ()
You can’t perform that action at this time.
0 commit comments