diff options
| author | James Churchill <pelrun@gmail.com> | 2019-03-05 01:44:46 +1000 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-03-04 07:44:46 -0800 |
| commit | c7c4937eef9cb34b73e765390b842282ad9f0544 (patch) | |
| tree | 2e2582abe4273e3acf7125e0b8a09eb04ab04730 /quantum | |
| parent | cdfcbfc92dba8198847e26056d8135a5feb0b5ec (diff) | |
| download | qmk_firmware-c7c4937eef9cb34b73e765390b842282ad9f0544.tar.gz qmk_firmware-c7c4937eef9cb34b73e765390b842282ad9f0544.zip | |
Clean up debounce a bit (#5255)
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/debounce/eager_pk.c (renamed from quantum/debounce/debounce_eager_pk.c) | 0 | ||||
| -rw-r--r-- | quantum/debounce/readme.md | 18 | ||||
| -rw-r--r-- | quantum/debounce/sym_g.c (renamed from quantum/debounce/debounce_sym_g.c) | 0 |
3 files changed, 9 insertions, 9 deletions
diff --git a/quantum/debounce/debounce_eager_pk.c b/quantum/debounce/eager_pk.c index b8ad09cee..b8ad09cee 100644 --- a/quantum/debounce/debounce_eager_pk.c +++ b/quantum/debounce/eager_pk.c | |||
diff --git a/quantum/debounce/readme.md b/quantum/debounce/readme.md index 1a77d44df..5b318d845 100644 --- a/quantum/debounce/readme.md +++ b/quantum/debounce/readme.md | |||
| @@ -6,10 +6,10 @@ Here are a few ideas | |||
| 6 | * Per key - one timer per key | 6 | * Per key - one timer per key |
| 7 | * Per row - one timer per row | 7 | * Per row - one timer per row |
| 8 | 8 | ||
| 9 | 2) Eager vs symmetric vs assymetric | 9 | 2) Eager vs symmetric vs asymmetric |
| 10 | * Eager - any key change is reported immediately. All further inputs for DEBOUNCE ms are ignored. | 10 | * Eager - any key change is reported immediately. All further inputs for DEBOUNCE ms are ignored. |
| 11 | * Symmetric - wait for no changes for DEBOUNCE ms before reporting change | 11 | * Symmetric - wait for no changes for DEBOUNCE ms before reporting change |
| 12 | * Assymetric - wait for different times depending on key-down/key-up. E.g. Eager key-down, DEBOUNCE ms key up. | 12 | * Asymmetric - wait for different times depending on key-down/key-up. E.g. Eager key-down, DEBOUNCE ms key up. |
| 13 | 13 | ||
| 14 | 3) Timestamp vs cycles | 14 | 3) Timestamp vs cycles |
| 15 | * old old old code waits n cycles, decreasing count by one each matrix_scan | 15 | * old old old code waits n cycles, decreasing count by one each matrix_scan |
| @@ -19,10 +19,10 @@ Here are a few ideas | |||
| 19 | The default algorithm is symmetric and global. | 19 | The default algorithm is symmetric and global. |
| 20 | Here are a few that could be implemented: | 20 | Here are a few that could be implemented: |
| 21 | 21 | ||
| 22 | debounce_sym_g.c | 22 | sym_g.c |
| 23 | debounce_sym_pk.c | 23 | sym_pk.c |
| 24 | debounce_sym_pr.c | 24 | sym_pr.c |
| 25 | debounce_sym_pr_cycles.c //currently used in ergo-dox | 25 | sym_pr_cycles.c //currently used in ergo-dox |
| 26 | debounce_eager_g.c | 26 | eager_g.c |
| 27 | debounce_eager_pk.c | 27 | eager_pk.c |
| 28 | debounce_eager_pr.c //could be used in ergo-dox! | 28 | eager_pr.c //could be used in ergo-dox! |
diff --git a/quantum/debounce/debounce_sym_g.c b/quantum/debounce/sym_g.c index c8ab34e1a..c8ab34e1a 100644 --- a/quantum/debounce/debounce_sym_g.c +++ b/quantum/debounce/sym_g.c | |||
