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.

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