Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
49cd7dd2
Commit
49cd7dd2
authored
5 years ago
by
Philip Stewart
Browse files
Options
Downloads
Patches
Plain Diff
Code style
parent
ad89be2b
No related branches found
No related tags found
1 merge request
!330
Add option to use right buttons for simple_menu scrolling
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pycardium/modules/py/simple_menu.py
+6
-2
6 additions, 2 deletions
pycardium/modules/py/simple_menu.py
with
6 additions
and
2 deletions
pycardium/modules/py/simple_menu.py
+
6
−
2
View file @
49cd7dd2
...
...
@@ -179,8 +179,12 @@ class Menu:
self
.
idx
=
0
self
.
select_time
=
utime
.
time_ms
()
self
.
disp
=
display
.
open
()
self
.
button_scroll_up
=
buttons
.
TOP_RIGHT
if
self
.
right_buttons_scroll
else
buttons
.
BOTTOM_LEFT
self
.
button_select
=
buttons
.
BOTTOM_LEFT
if
self
.
right_buttons_scroll
else
buttons
.
TOP_RIGHT
self
.
button_scroll_up
=
(
buttons
.
TOP_RIGHT
if
self
.
right_buttons_scroll
else
buttons
.
BOTTOM_LEFT
)
self
.
button_select
=
(
buttons
.
BOTTOM_LEFT
if
self
.
right_buttons_scroll
else
buttons
.
TOP_RIGHT
)
def
entry2name
(
self
,
value
):
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment