PyDOS - reset screen settings after running python script
This commit is contained in:
parent
904f607f2a
commit
da64f4585d
1 changed files with 4 additions and 0 deletions
|
|
@ -237,6 +237,10 @@ def PyDOS():
|
|||
|
||||
if envVars["_display"].root_group != displayio.CIRCUITPYTHON_TERMINAL:
|
||||
envVars["_display"].root_group = displayio.CIRCUITPYTHON_TERMINAL
|
||||
|
||||
envVars["_display"].auto_refresh = True
|
||||
envVars["_scrHeight"] = envVars["_display"].root_group[0].height
|
||||
envVars["_scrWidth"] = envVars["_display"].root_group[0].width - 1
|
||||
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue