diff options
author | Eric Tang <e_l_tang@outlook.com> | 2016-05-24 05:42:21 +0200 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-05-24 05:42:21 +0200 |
commit | aaa758f1d3f97dda39879f2b055ad2da9680adfe (patch) | |
tree | cb0749cda23c0507dd2b230af3eb0ca81a97b8af /keyboard/atreus/config.h | |
parent | d66aa0abf96b5e887250cf0a7fa5e575f18c5a91 (diff) | |
download | qmk_firmware-aaa758f1d3f97dda39879f2b055ad2da9680adfe.tar.gz qmk_firmware-aaa758f1d3f97dda39879f2b055ad2da9680adfe.tar.xz |
Optimize matrix scanning (#343)
Diffstat (limited to 'keyboard/atreus/config.h')
-rw-r--r-- | keyboard/atreus/config.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/keyboard/atreus/config.h b/keyboard/atreus/config.h index 55d3b62b9..624d90188 100644 --- a/keyboard/atreus/config.h +++ b/keyboard/atreus/config.h @@ -36,11 +36,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. // Change this to how you wired your keyboard // COLS: Left to right, ROWS: Top to bottom #if defined(ATREUS_ASTAR) - #define COLS (int []){ D7, C6, B5, B4, E6, D4, B6, F6, F7, D6, B7 } - #define ROWS (int []){ D0, D1, D3, D2 } +# define MATRIX_ROW_PINS { D0, D1, D3, D2 } +# define MATRIX_COL_PINS { D7, C6, B5, B4, E6, D4, B6, F6, F7, D6, B7 } +# define UNUSED_PINS #elif defined(ATREUS_TEENSY2) - #define COLS (int []){ F6, F5, F4, B7, B6, B5, B4, B3, B2, B1, B0} - #define ROWS (int []){ D0, D1, D2, D3 } +# define MATRIX_ROW_PINS { D0, D1, D2, D3 } +# define MATRIX_COL_PINS { F6, F5, F4, B7, B6, B5, B4, B3, B2, B1, B0 } +# define UNUSED_PINS #endif /* COL2ROW or ROW2COL */ @@ -53,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. //#define BACKLIGHT_LEVELS 3 /* Set 0 if debouncing isn't needed */ -#define DEBOUNCE 5 +#define DEBOUNCING_DELAY 5 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE |