71 lines
1.9 KiB
C
71 lines
1.9 KiB
C
// Copyright 2022 grooovebob (@grooovebob)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
/*
|
|
* Feature disable options
|
|
* These options are also useful to firmware size reduction.
|
|
*/
|
|
|
|
/* disable debug print */
|
|
//#define NO_DEBUG
|
|
|
|
/* disable print */
|
|
//#define NO_PRINT
|
|
|
|
/* disable action features */
|
|
//#define NO_ACTION_LAYER
|
|
//#define NO_ACTION_TAPPING
|
|
//#define NO_ACTION_ONESHOT
|
|
|
|
#define MATRIX_ROWS 8
|
|
#define MATRIX_COLS 5
|
|
|
|
#define DIRECT_PINS { \
|
|
{ D0, F5, D1, 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, D1, F5, D0 }, \
|
|
{ F6, D4, F7, C6, B1}, \
|
|
{ D7, B3, E6, B2, B6 }, \
|
|
{ B4, B5, F0, NO_PIN, NO_PIN } \
|
|
}
|
|
|
|
|
|
|
|
#define UNUSED_PINS
|
|
|
|
/* 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
|