Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
highTower
flow3r firmware
Commits
6c262b2f
Commit
6c262b2f
authored
1 year ago
by
moon2
Browse files
Options
Downloads
Patches
Plain Diff
st3m: bugfix Pressable state output
parent
bbc19136
Branches
pressable_bugfix
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_payload/st3m/input.py
+6
-2
6 additions, 2 deletions
python_payload/st3m/input.py
with
6 additions
and
2 deletions
python_payload/st3m/input.py
+
6
−
2
View file @
6c262b2f
...
@@ -249,14 +249,18 @@ class Pressable:
...
@@ -249,14 +249,18 @@ class Pressable:
"""
"""
True if the button is held down, after first being pressed.
True if the button is held down, after first being pressed.
"""
"""
return
self
.
state
==
self
.
DOWN
return
(
(
self
.
state
==
self
.
DOWN
)
or
(
self
.
state
==
self
.
PRESSED
)
or
(
self
.
state
==
self
.
REPEATED
)
)
@property
@property
def
up
(
self
)
->
bool
:
def
up
(
self
)
->
bool
:
"""
"""
True if the button is currently not being held down.
True if the button is currently not being held down.
"""
"""
return
self
.
state
==
self
.
UP
return
not
self
.
down
def
_ignore_pressed
(
self
)
->
None
:
def
_ignore_pressed
(
self
)
->
None
:
"""
"""
...
...
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