config.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* Copyright 2022 Sandipratama <https://github.com/nendezkombet>
  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. /* KFM PCB default pin-out */
  25. #define MATRIX_ROW_PINS { F5, F6, F7, B1 }
  26. #define MATRIX_COL_PINS { B3, B2, D1, D0, D4, C6, D7, E6, B4, B5 }
  27. /* COL2ROW, ROW2COL */
  28. #define DIODE_DIRECTION COL2ROW
  29. #define RGB_DI_PIN F4
  30. #ifdef RGB_DI_PIN
  31. #define RGBLED_NUM 40
  32. #define RGBLIGHT_HUE_STEP 8
  33. #define RGBLIGHT_SAT_STEP 8
  34. #define RGBLIGHT_VAL_STEP 8
  35. #define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level */
  36. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  37. # define RGBLIGHT_EFFECT_BREATHING
  38. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  39. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  40. #endif
  41. /*
  42. * Feature disable options
  43. * These options are also useful to firmware size reduction.
  44. */
  45. /* disable action features */
  46. //#define NO_ACTION_LAYER
  47. //#define NO_ACTION_TAPPING
  48. //#define NO_ACTION_ONESHOT