You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.1 KiB

  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. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  37. #define LOCKING_SUPPORT_ENABLE
  38. /* Locking resynchronize hack */
  39. #define LOCKING_RESYNC_ENABLE
  40. /* key combination for command */
  41. #define IS_COMMAND() ( \
  42. get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  43. get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  44. )
  45. #ifndef LED_BRIGHTNESS_LO
  46. #define LED_BRIGHTNESS_LO 15
  47. #endif
  48. #ifndef LED_BRIGHTNESS_HI
  49. #define LED_BRIGHTNESS_HI 255
  50. #endif
  51. #define LED_BRIGHTNESS_DEFAULT (LED_BRIGHTNESS_HI)
  52. /* fix space cadet rollover issue */
  53. #define DISABLE_SPACE_CADET_ROLLOVER
  54. /*
  55. * The debounce filtering reports a key/switch change directly,
  56. * without any extra delay. After that the debounce logic will filter
  57. * all further changes, until the key/switch reports the same state for
  58. * the given count of scans.
  59. * So a perfect switch will get a short debounce period and
  60. * a bad key will get a much longer debounce period.
  61. * The result is an adaptive debouncing period for each switch.
  62. *
  63. * If you don't define it here, the matrix code will default to
  64. * 5, which is now closer to 10ms, but still plenty according to
  65. * manufacturer specs.
  66. */
  67. /*
  68. * Feature disable options
  69. * These options are also useful to firmware size reduction.
  70. */
  71. /* disable debug print */
  72. // #define NO_DEBUG
  73. /* disable print */
  74. // #define NO_PRINT
  75. /* disable action features */
  76. //#define NO_ACTION_LAYER
  77. //#define NO_ACTION_TAPPING
  78. //#define NO_ACTION_ONESHOT
  79. //#define DEBUG_MATRIX_SCAN_RATE