logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (3027B)


  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
  4. Copyright 2015 ZSA Technology Labs Inc (@zsa)
  5. Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
  6. Copyright 2021 Gary Kong <kongkm88@gmail.com> (@garykong)
  7. This program is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation, either version 2 of the License, or
  10. (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. /* key matrix size */
  20. #define MATRIX_ROWS 14
  21. #define MATRIX_ROWS_PER_SIDE (MATRIX_ROWS / 2)
  22. #define MATRIX_COLS 7
  23. #define COL_EXPANDED { true, true, true, true, true, true, true, false, false, false, false, false, false, false }
  24. #define MATRIX_ONBOARD_ROW_PINS { 0, 0, 0, 0, 0, 0, 0, B0, B1, B2, B3, D2, D3, C6 }
  25. #define MATRIX_ONBOARD_COL_PINS { F0, F1, F4, F5, F6, F7, D7 }
  26. #define DIODE_DIRECTION COL2ROW
  27. #define EXPANDER_COL_REGISTER GPIOB
  28. #define EXPANDER_ROW_REGISTER GPIOA
  29. #define MATRIX_EXPANDER_COL_PINS { 6, 5, 4, 3, 2, 1, 0 }
  30. #define MATRIX_EXPANDER_ROW_PINS { 0, 1, 2, 3, 4, 5, 6 }
  31. #define MOUSEKEY_INTERVAL 20
  32. #define MOUSEKEY_DELAY 0
  33. #define MOUSEKEY_TIME_TO_MAX 60
  34. #define MOUSEKEY_MAX_SPEED 7
  35. #define MOUSEKEY_WHEEL_DELAY 0
  36. /* key combination for command */
  37. #define IS_COMMAND() ( \
  38. get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  39. get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  40. )
  41. #ifndef LED_BRIGHTNESS_LO
  42. #define LED_BRIGHTNESS_LO 15
  43. #endif
  44. #ifndef LED_BRIGHTNESS_HI
  45. #define LED_BRIGHTNESS_HI 255
  46. #endif
  47. #define LED_BRIGHTNESS_DEFAULT (LED_BRIGHTNESS_HI)
  48. /* fix space cadet rollover issue */
  49. #define DISABLE_SPACE_CADET_ROLLOVER
  50. /*
  51. * The debounce filtering reports a key/switch change directly,
  52. * without any extra delay. After that the debounce logic will filter
  53. * all further changes, until the key/switch reports the same state for
  54. * the given count of scans.
  55. * So a perfect switch will get a short debounce period and
  56. * a bad key will get a much longer debounce period.
  57. * The result is an adaptive debouncing period for each switch.
  58. *
  59. * If you don't define it here, the matrix code will default to
  60. * 5, which is now closer to 10ms, but still plenty according to
  61. * manufacturer specs.
  62. */
  63. /*
  64. * Feature disable options
  65. * These options are also useful to firmware size reduction.
  66. */
  67. /* disable debug print */
  68. // #define NO_DEBUG
  69. /* disable print */
  70. // #define NO_PRINT
  71. /* disable action features */
  72. //#define NO_ACTION_LAYER
  73. //#define NO_ACTION_TAPPING
  74. //#define NO_ACTION_ONESHOT
  75. //#define DEBUG_MATRIX_SCAN_RATE