X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboard%2Fergodox%2Fconfig.h;h=de32be7ecfbe881c78d1d4008d747560e0a74ae3;hb=5329bbefee10503832d419733e6cfecb97e712cb;hp=62e5ff6a81a82d0730c30c4f5d4835c1516e6b34;hpb=777d1fba76c4c89b2e82ba6f62fb321f4ae68054;p=tmk_firmware.git diff --git a/keyboard/ergodox/config.h b/keyboard/ergodox/config.h index 62e5ff6..de32be7 100644 --- a/keyboard/ergodox/config.h +++ b/keyboard/ergodox/config.h @@ -40,7 +40,17 @@ 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 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE