mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 19:39:27 +00:00
Keyboard/ergodox debounce (#6994)
* Set default debounce to 30 Lower debounce causes issues, and even 15 isn't lowe enough for the EZ * Cleanup ergodox ez matrix
This commit is contained in:
parent
4e23c700f1
commit
e58343596a
@ -40,6 +40,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define MOUSEKEY_MAX_SPEED 7
|
#define MOUSEKEY_MAX_SPEED 7
|
||||||
#define MOUSEKEY_WHEEL_DELAY 0
|
#define MOUSEKEY_WHEEL_DELAY 0
|
||||||
|
|
||||||
|
#define DEBOUNCE 30
|
||||||
|
|
||||||
#define TAPPING_TOGGLE 1
|
#define TAPPING_TOGGLE 1
|
||||||
|
|
||||||
/* define if matrix has ghost */
|
/* define if matrix has ghost */
|
||||||
|
@ -31,6 +31,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
#include "debounce.h"
|
#include "debounce.h"
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
// Only enable this if console is enabled to print to
|
||||||
|
#if defined(DEBUG_MATRIX_SCAN_RATE) && !defined(CONSOLE_ENABLE)
|
||||||
|
# undef DEBUG_MATRIX_SCAN_RATE
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG_MATRIX_SCAN_RATE
|
#ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
# include "timer.h"
|
# include "timer.h"
|
||||||
#endif
|
#endif
|
||||||
@ -47,10 +53,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
* that comment was written.)
|
* that comment was written.)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DEBOUNCE
|
|
||||||
# define DEBOUNCE 5
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* matrix state(1:on, 0:off) */
|
/* matrix state(1:on, 0:off) */
|
||||||
static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values
|
static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values
|
||||||
static matrix_row_t matrix[MATRIX_ROWS]; // debounced values
|
static matrix_row_t matrix[MATRIX_ROWS]; // debounced values
|
||||||
|
Loading…
Reference in New Issue
Block a user