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.

93 lines
2.7 KiB

  1. /*
  2. Copyright 2019 MechMerlin
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. /* key matrix size */
  16. #define MATRIX_ROWS 7
  17. #define MATRIX_COLS 13
  18. /*
  19. * Keyboard Matrix Assignments
  20. *
  21. * Change this to how you wired your keyboard
  22. * COLS: AVR pins used for columns, left to right
  23. * ROWS: AVR pins used for rows, top to bottom
  24. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  25. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  26. *
  27. */
  28. #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6 }
  29. #define MATRIX_COL_PINS { D0, D1, D2, D3, D4, D5, D6, D7, F0, F1, F4, F5, F6 }
  30. /* COL2ROW, ROW2COL*/
  31. #define DIODE_DIRECTION COL2ROW
  32. #define LED_NUM_LOCK_PIN E6
  33. #define LED_CAPS_LOCK_PIN C6
  34. #define LED_SCROLL_LOCK_PIN C7
  35. #define LED_PIN_ON_STATE 0
  36. #define BACKLIGHT_PIN B7
  37. #define BACKLIGHT_BREATHING
  38. #define BACKLIGHT_LEVELS 3
  39. #define RGB_DI_PIN F7
  40. #ifdef RGB_DI_PIN
  41. #define RGBLED_NUM 28
  42. #define RGBLIGHT_HUE_STEP 8
  43. #define RGBLIGHT_SAT_STEP 8
  44. #define RGBLIGHT_VAL_STEP 8
  45. #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  46. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  47. # define RGBLIGHT_EFFECT_BREATHING
  48. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  49. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  50. # define RGBLIGHT_EFFECT_SNAKE
  51. # define RGBLIGHT_EFFECT_KNIGHT
  52. # define RGBLIGHT_EFFECT_CHRISTMAS
  53. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  54. # define RGBLIGHT_EFFECT_RGB_TEST
  55. # define RGBLIGHT_EFFECT_ALTERNATING
  56. # define RGBLIGHT_EFFECT_TWINKLE
  57. #endif
  58. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  59. #define LOCKING_SUPPORT_ENABLE
  60. /* Locking resynchronize hack */
  61. #define LOCKING_RESYNC_ENABLE
  62. /*
  63. * Feature disable options
  64. * These options are also useful to firmware size reduction.
  65. */
  66. /* disable debug print */
  67. //#define NO_DEBUG
  68. /* disable print */
  69. //#define NO_PRINT
  70. /* disable action features */
  71. //#define NO_ACTION_LAYER
  72. //#define NO_ACTION_TAPPING
  73. //#define NO_ACTION_ONESHOT
  74. /* Bootmagic Lite key configuration */
  75. // #define BOOTMAGIC_LITE_ROW 0
  76. // #define BOOTMAGIC_LITE_COLUMN 0