config.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. Copyright 2020 sotoba
  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. /*
  16. * Keyboard Matrix Assignments
  17. *
  18. * Change this to how you wired your keyboard
  19. * COLS: AVR pins used for columns, left to right
  20. * ROWS: AVR pins used for rows, top to bottom
  21. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  22. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  23. *
  24. */
  25. #define MATRIX_ROW_PINS { D4, D3, B5, B7, B4, B2 }
  26. #define MATRIX_COL_PINS { C7, D6, B3, B0, B1 }
  27. /* COL2ROW, ROW2COL */
  28. #define DIODE_DIRECTION COL2ROW
  29. #define RGB_DI_PIN C6
  30. #define RGBLED_NUM 33
  31. #define RGBLIGHT_LED_MAP { \
  32. 0, 1, 2, 3, \
  33. 7, 6, 5, 4, \
  34. 8, 9, 10, 11, \
  35. 15, 14, 13, 12, \
  36. 16, 17, 18, 19, \
  37. 22, 21, 20, \
  38. 25, 24, 23, 26, 27, 28, 29, 30, 31, 32 }
  39. #define RGBLIGHT_HUE_STEP 8
  40. #define RGBLIGHT_SAT_STEP 8
  41. #define RGBLIGHT_VAL_STEP 8
  42. #define RGBLIGHT_LIMIT_VAL 32 /* The maximum brightness level */
  43. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  44. #define RGBLIGHT_EFFECT_BREATHING
  45. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  46. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  47. #define RGBLIGHT_EFFECT_SNAKE
  48. #define RGBLIGHT_EFFECT_KNIGHT
  49. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  50. #define RGBLIGHT_EFFECT_RGB_TEST
  51. #define RGBLIGHT_EFFECT_ALTERNATING
  52. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  53. #define LOCKING_SUPPORT_ENABLE
  54. /* Locking resynchronize hack */
  55. #define LOCKING_RESYNC_ENABLE
  56. /*
  57. * Feature disable options
  58. * These options are also useful to firmware size reduction.
  59. */
  60. /* disable debug print */
  61. //#define NO_DEBUG
  62. /* disable print */
  63. //#define NO_PRINT
  64. /* disable action features */
  65. //#define NO_ACTION_LAYER
  66. //#define NO_ACTION_TAPPING
  67. //#define NO_ACTION_ONESHOT