diff options
author | IBNobody <ibnobody@gmail.com> | 2016-10-23 23:00:43 -0500 |
---|---|---|
committer | IBNobody <ibnobody@gmail.com> | 2016-10-23 23:00:43 -0500 |
commit | 17170ba76d3c94edcf1ab263520238fdb0384774 (patch) | |
tree | 4b80ab5544e6f53464068210278f0405bd596c41 /keyboards/vision_division | |
parent | 05ceef2350dbd72f696d70b8a2567d048fa147dc (diff) |
Fixed some large keyboard bugs
Fixed some bugs relating to keyboards with more than 16 columns. Also
added the ability to mask off keyboard matrix bits.
Diffstat (limited to 'keyboards/vision_division')
-rw-r--r-- | keyboards/vision_division/config.h | 2 | ||||
-rw-r--r-- | keyboards/vision_division/keymaps/default/keymap.c | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/keyboards/vision_division/config.h b/keyboards/vision_division/config.h index 1f8466a546..93c9606712 100644 --- a/keyboards/vision_division/config.h +++ b/keyboards/vision_division/config.h @@ -33,6 +33,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ #define DEBOUNCING_DELAY 5 +#define MATRIX_MASKED + /* define if matrix has ghost (lacks anti-ghosting diodes) */ //#define MATRIX_HAS_GHOST diff --git a/keyboards/vision_division/keymaps/default/keymap.c b/keyboards/vision_division/keymaps/default/keymap.c index 8622ee5211..3282761c0f 100644 --- a/keyboards/vision_division/keymaps/default/keymap.c +++ b/keyboards/vision_division/keymaps/default/keymap.c @@ -142,6 +142,17 @@ enum keyboard_macros { #define ________________ _______, _______ #define XXXXXXXXXXXXXXXX XXXXXXX, XXXXXXX +const matrix_row_t matrix_mask[MATRIX_ROWS] = +{ +// 1098765432109876543210987654321 + 0b0000000001111111101111011111111, + 0b0000000001111111111111111111111, + 0b0000000001111111111111111111111, + 0b0000000001111111111111111111111, + 0b0000000001010111111111111111111, + 0b0000000001111101111111101011111, +}; + const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* LAYER = LAYER_QWERTY |