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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user