config.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #pragma once
  14. /*
  15. * Keyboard Matrix Assignments
  16. *
  17. * Change this to how you wired your keyboard
  18. * COLS: AVR pins used for columns, left to right
  19. * ROWS: AVR pins used for rows, top to bottom
  20. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  21. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  22. *
  23. */
  24. #define MATRIX_ROW_PINS { F0, F1, F4, F5, F6 }
  25. #define MATRIX_COL_PINS { F7, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, D2, D1, D0, B3, B2, B1 }
  26. /* COL2ROW, ROW2COL */
  27. #define DIODE_DIRECTION COL2ROW
  28. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  29. #define LOCKING_SUPPORT_ENABLE
  30. /* Locking resynchronize hack */
  31. #define LOCKING_RESYNC_ENABLE
  32. /*
  33. * Feature disable options
  34. * These options are also useful to firmware size reduction.
  35. */
  36. /* disable debug print */
  37. //#define NO_DEBUG
  38. /* disable print */
  39. //#define NO_PRINT
  40. /* disable action features */
  41. //#define NO_ACTION_LAYER
  42. //#define NO_ACTION_TAPPING
  43. //#define NO_ACTION_ONESHOT
  44. // ws2812 options
  45. #define RGB_DI_PIN B7 // pin the DI on the ws2812 is hooked-up to
  46. #define RGBLIGHT_EFFECT_BREATHING
  47. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  48. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  49. #define RGBLIGHT_EFFECT_SNAKE
  50. #define RGBLIGHT_EFFECT_KNIGHT
  51. #define RGBLIGHT_EFFECT_CHRISTMAS
  52. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  53. #define RGBLIGHT_EFFECT_RGB_TEST
  54. #define RGBLIGHT_EFFECT_ALTERNATING
  55. #define RGBLIGHT_EFFECT_TWINKLE
  56. #define RGBLED_NUM 15 // number of LEDs
  57. #define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue
  58. #define RGBLIGHT_SAT_STEP 25 // units to step when in/decresing saturation
  59. #define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness)