Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sven Greiner
rampinglight
Commits
1fab14c7
Commit
1fab14c7
authored
Jan 16, 2019
by
Sven Greiner
Browse files
Add simple button debouncing
parent
276167d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
rampinglight.c
View file @
1fab14c7
...
...
@@ -412,6 +412,8 @@ int main(void) {
}
}
}
else
{
// User has tapped the power button
delay_10ms
(
4
);
// Simple button debounce
++
fast_presses
;
// Input handling
...
...
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