Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
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
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
Skyward Boardcore
Wiki
ButtonHandler
Changes
Page history
New page
Templates
Clone repository
[style] minor style fixes
authored
4 years ago
by
Luca Conterio
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ButtonHandler.md
+3
-3
3 additions, 3 deletions
ButtonHandler.md
with
3 additions
and
3 deletions
ButtonHandler.md
View page @
ad6bddc5
...
...
@@ -71,8 +71,8 @@ int main()
#### Output
If we press the button for a long time, the expected output is:
```
sh
0.92> Callback!
btn_id
=
1,
btn_press
=
0
# DOWN, as soon as the button is pressed
0.92> Callback!
btn_id
=
1,
btn_press
=
0
#
btn_press=
DOWN, as soon as the button is pressed
1.94> Button pressed
(
long
)
(
10 ticks
)
.
1.96> Callback!
btn_id
=
1,
btn_press
=
3
# LONG, after a long time when the button is released
1.98> Callback!
btn_id
=
1,
btn_press
=
1
# UP, when the button is released
1.96> Callback!
btn_id
=
1,
btn_press
=
3
#
btn_press=
LONG, after a long time when the button is released
1.98> Callback!
btn_id
=
1,
btn_press
=
1
#
btn_press=
UP, when the button is released
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.