Skip to content

Commit

Permalink
Slightly raise debounce delay.
Browse files Browse the repository at this point in the history
My little 'un has been smashing the buttons and seems to have made one BOUNCY!
  • Loading branch information
Gadgetoid committed Jul 31, 2024
1 parent 8a833e8 commit 54522a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions picade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void picade_init() {
// A rising edge is always reported instantly, meaning latency is never affected by debounce
// however this short rolloff means- if you were some kind of superhuman or hooked your Picade to a signal generator-
// it cannot report button transitions faster than roughly debounce_depth milliseconds.
const uint debounce_depth = 3; // How many reports- ostensibly milliseconds- before a low button should be reported as low
const uint debounce_depth = 5; // How many reports- ostensibly milliseconds- before a low button should be reported as low
uint64_t debounce_fifo[debounce_depth][8] = {0};
uint debounce_fifo_idx = 0;

Expand Down Expand Up @@ -210,4 +210,4 @@ input_t picade_get_input() {
last_in = in;

return in;
}
}

0 comments on commit 54522a4

Please sign in to comment.