config.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. Copyright 2021 CapsUnlocked
  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. #include "config_common.h"
  16. /* key matrix size */
  17. #define MATRIX_ROWS 3
  18. #define MATRIX_COLS 3
  19. /*
  20. * Keyboard Matrix Assignments
  21. *
  22. * Change this to how you wired your keyboard
  23. * COLS: AVR pins used for columns, left to right
  24. * ROWS: AVR pins used for rows, top to bottom
  25. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  26. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  27. *
  28. */
  29. #define ENCODER_RESOLUTION 2
  30. #define ENCODERS_PAD_A { D6 }
  31. #define ENCODERS_PAD_B { D4 }
  32. #define MATRIX_ROW_PINS { D7, F0, F6 }
  33. #define MATRIX_COL_PINS { F5, F7, F4 }
  34. #define UNUSED_PINS
  35. /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
  36. #define DIODE_DIRECTION COL2ROW
  37. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  38. #define DEBOUNCE 5
  39. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  40. #define LOCKING_SUPPORT_ENABLE
  41. /* Locking resynchronize hack */
  42. #define LOCKING_RESYNC_ENABLE
  43. #define RGB_DI_PIN F1
  44. #ifdef RGB_DI_PIN
  45. #define RGBLIGHT_ANIMATIONS
  46. // #define RGBLIGHT_EFFECT_BREATHING
  47. #define RGBLED_NUM 6
  48. #define RGBLIGHT_HUE_STEP 10
  49. #define RGBLIGHT_SAT_STEP 17
  50. #define RGBLIGHT_VAL_STEP 17
  51. #define RGBLIGHT_LIMIT_VAL 50
  52. #endif