Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Haun
firmware
Commits
82215071
Commit
82215071
authored
Aug 25, 2019
by
Stefan Haun
Browse files
Only lock display when it's used
parent
83a19117
Pipeline
#3505
failed with stages
in 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
preload/menu.py
View file @
82215071
...
@@ -206,7 +206,6 @@ def draw_menu(disp, applist, pos, appcount, lineoffset):
...
@@ -206,7 +206,6 @@ def draw_menu(disp, applist, pos, appcount, lineoffset):
def
main
():
def
main
():
create_folders
()
create_folders
()
disp
=
display
.
open
()
applist
=
list_apps
()
applist
=
list_apps
()
numapps
=
len
(
applist
)
numapps
=
len
(
applist
)
current
=
0
current
=
0
...
@@ -215,6 +214,8 @@ def main():
...
@@ -215,6 +214,8 @@ def main():
timerstartscroll
=
5
timerstartscroll
=
5
timercountpopped
=
0
timercountpopped
=
0
for
ev
in
button_events
(
10
):
for
ev
in
button_events
(
10
):
disp
=
display
.
open
()
if
numapps
==
0
:
if
numapps
==
0
:
disp
.
clear
(
color
.
COMMYELLOW
)
disp
.
clear
(
color
.
COMMYELLOW
)
disp
.
print
(
disp
.
print
(
...
@@ -266,6 +267,8 @@ def main():
...
@@ -266,6 +267,8 @@ def main():
draw_menu
(
disp
,
applist
,
current
,
numapps
,
lineoffset
)
draw_menu
(
disp
,
applist
,
current
,
numapps
,
lineoffset
)
disp
.
close
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
try
:
try
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment