X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fergodox%2Fconfig.h;h=7c8e0d4c83428bfdc9a06098c44c0e403a959b79;hb=d2427380e3d82df0f9b543615c27f9d823a09306;hp=d2ca7ea69e7e6add1bc9b72a206efba2d5caaf02;hpb=cfc23836e5f9571056d3710b8580c1f27b91ed54;p=max%2Ftmk_keyboard.git diff --git a/keyboard/ergodox/config.h b/keyboard/ergodox/config.h index d2ca7ea6..7c8e0d4c 100644 --- a/keyboard/ergodox/config.h +++ b/keyboard/ergodox/config.h @@ -40,7 +40,18 @@ Project located at //#define MATRIX_HAS_GHOST /* Set 0 if debouncing isn't needed */ -#define DEBOUNCE 5 +/* + * This constant define not debouncing time in msecs, but amount of matrix + * scan loops which should be made to get stable debounced results. + * + * On Ergodox matrix scan rate is relatively low, because of slow I2C. + * Now it's only 317 scans/second, or about 3.15 msec/scan. + * According to Cherry specs, debouncing time is 5 msec. + * + * And so, there is no sense to have DEBOUNCE higher than 2. + */ +#define DEBOUNCE 2 +#define TAPPING_TERM 250 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE @@ -49,6 +60,7 @@ Project located at /* key combination for command */ #define IS_COMMAND() ( \ + keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \ keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \ ) @@ -71,5 +83,6 @@ Project located at //#define NO_ACTION_ONESHOT //#define NO_ACTION_MACRO //#define NO_ACTION_FUNCTION +//#define DEBUG_MATRIX_SCAN_RATE #endif