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
79a2f879
Commit
79a2f879
authored
4 years ago
by
Pixtxa
Browse files
Options
Downloads
Patches
Plain Diff
LINT!
parent
7a95528b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!433
Simple Menu
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pycardium/modules/py/simple_menu.py
+2
-1
2 additions, 1 deletion
pycardium/modules/py/simple_menu.py
with
2 additions
and
1 deletion
pycardium/modules/py/simple_menu.py
+
2
−
1
View file @
79a2f879
...
...
@@ -21,6 +21,7 @@ except OSError:
"""
:py:func:`~simple_menu.button_events` timeout marker.
"""
def
button_events
(
timeout
=
None
,
long_press_ms
=
LONG_PRESS_MS
,
retrigger_ms
=
RETRIGGER_MS
):
"""
Iterate over button presses (event-loop).
...
...
@@ -88,7 +89,7 @@ def button_events(timeout=None, long_press_ms=LONG_PRESS_MS, retrigger_ms=RETRIG
if
v
&
buttons
.
TOP_RIGHT
:
yield
buttons
.
TOP_RIGHT
if
(
not
still_pressed
and
long_press_ms
...
...
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