dasbob_qmk/config.h
2022-09-24 19:19:28 +02:00

52 lines
1.6 KiB
C

// Copyright 2022 grooovebob (@grooovebob)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define MATRIX_ROWS 8
#define MATRIX_COLS 5
#define DIRECT_PINS { \
{ D5, F5, B7, F4, D3 }, \
{ B1, C6, F7, D4, F6}, \
{ B6, B2, E6, B3, D7 }, \
{ F0, B5, B4, NO_PIN, NO_PIN } \
}
#define DIRECT_PINS_RIGHT { \
{ D3, F4, B7, F5, D5 }, \
{ F6, D4, F7, C6, B1}, \
{ D7, B3, E6, B2, B6 }, \
{ B4, B5, F0, NO_PIN, NO_PIN } \
}
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5
#define USE_SERIAL
#define SOFT_SERIAL_PIN D2
#define MASTER_LEFT
// Set the mouse settings to a comfortable speed/accuracy trade-off,
// assuming a screen refresh rate of 60 Htz or higher
// The default is 50. This makes the mouse ~3 times faster and more accurate
#define MOUSEKEY_INTERVAL 16
// The default is 20. Since we made the mouse about 3 times faster with the previous setting,
// give it more time to accelerate to max speed to retain precise control over short distances.
#define MOUSEKEY_TIME_TO_MAX 40
// The default is 300. Let's try and make this as low as possible while keeping the cursor responsive
#define MOUSEKEY_DELAY 100
// It makes sense to use the same delay for the mouseweel
#define MOUSEKEY_WHEEL_DELAY 100
// The default is 100
#define MOUSEKEY_WHEEL_INTERVAL 50
// The default is 40
#define MOUSEKEY_WHEEL_TIME_TO_MAX 100
// Pick good defaults for enabling homerow modifiers
#define TAPPING_TERM 200
#define PERMISSIVE_HOLD
#define IGNORE_MOD_TAP_INTERRUPT
#define TAPPING_FORCE_HOLD