config.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. * 0 1 2 3 4 5 6 7 8
  24. */
  25. #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7, D0, D1, D2, D3 }
  26. #define MATRIX_COL_PINS { D5, D4, D6, D7, F7, B5, B6, C6 }
  27. /* COL2ROW, ROW2COL*/
  28. #define DIODE_DIRECTION COL2ROW
  29. /* RGB Lighting */
  30. #define RGB_DI_PIN F0
  31. #ifdef RGB_DI_PIN
  32. #define RGBLIGHT_EFFECT_BREATHING
  33. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  34. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  35. #define RGBLIGHT_EFFECT_SNAKE
  36. #define RGBLIGHT_EFFECT_KNIGHT
  37. #define RGBLIGHT_EFFECT_CHRISTMAS
  38. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  39. #define RGBLIGHT_EFFECT_RGB_TEST
  40. #define RGBLIGHT_EFFECT_ALTERNATING
  41. #define RGBLIGHT_EFFECT_TWINKLE
  42. #define RGBLED_NUM 24
  43. #define RGBLIGHT_HUE_STEP 8
  44. #define RGBLIGHT_SAT_STEP 8
  45. #define RGBLIGHT_VAL_STEP 8
  46. #endif