config.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. Copyright 2021 illness072
  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 \
  26. { D4, C6, D7, E6 }
  27. #define MATRIX_COL_PINS \
  28. { F4, F5, F6, F7, B1, B3 }
  29. /* COL2ROW, ROW2COL */
  30. #define DIODE_DIRECTION COL2ROW
  31. #define RGB_DI_PIN D3
  32. #ifdef RGB_DI_PIN
  33. # define RGBLED_SPLIT { 27, 27 }
  34. # define RGBLED_NUM 54 // backlight x42 + underglow x12
  35. # define RGBLIGHT_HUE_STEP 8
  36. # define RGBLIGHT_SAT_STEP 8
  37. # define RGBLIGHT_VAL_STEP 8
  38. # define RGBLIGHT_LIMIT_VAL 170 /* The maximum brightness level */
  39. # define RGBLIGHT_EFFECT_BREATHING
  40. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  41. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  42. # define RGBLIGHT_EFFECT_SNAKE
  43. # define RGBLIGHT_EFFECT_KNIGHT
  44. # define RGBLIGHT_EFFECT_CHRISTMAS
  45. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  46. # define RGBLIGHT_EFFECT_RGB_TEST
  47. # define RGBLIGHT_EFFECT_ALTERNATING
  48. # define RGBLIGHT_EFFECT_TWINKLE
  49. #endif
  50. #ifdef RGB_MATRIX_ENABLE
  51. # define SPLIT_TRANSPORT_MIRROR
  52. # define RGB_MATRIX_LED_COUNT RGBLED_NUM
  53. # define RGB_MATRIX_SPLIT RGBLED_SPLIT
  54. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
  55. # define RGB_MATRIX_HUE_STEP RGBLIGHT_HUE_STEP
  56. # define RGB_MATRIX_SAT_STEP RGBLIGHT_SAT_STEP
  57. # define RGB_MATRIX_VAL_STEP RGBLIGHT_VAL_STEP
  58. # define RGB_MATRIX_SPD_STEP 8
  59. #endif
  60. #ifndef OLED_FONT_H
  61. # define OLED_FONT_H "keyboards/elephant42/lib/glcdfont.c"
  62. #endif