config.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * config.h
  3. *
  4. Copyright 2020 astro <yuleiz@gmail.com>
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. /* key matrix size */
  19. #define MATRIX_ROWS 9
  20. #define MATRIX_COLS 12
  21. /* key matrix pins */
  22. #define MATRIX_ROW_PINS { F0, C7, C6, D5, D2, D4, D7, B7, D1 }
  23. #define MATRIX_COL_PINS { F1, F4, F5, F6, B5, B6, B3, B2, B1, D0, B4, D6}
  24. #define UNUSED_PINS
  25. /* COL2ROW or ROW2COL */
  26. #define DIODE_DIRECTION COL2ROW
  27. #define RGB_DI_PIN E6
  28. #ifdef RGB_DI_PIN
  29. #define RGBLIGHT_ANIMATIONS
  30. #define RGBLED_NUM 14
  31. #define RGBLIGHT_HUE_STEP 8
  32. #define RGBLIGHT_SAT_STEP 8
  33. #define RGBLIGHT_VAL_STEP 8
  34. #define RGBLIGHT_SLEEP
  35. #define RGBLIGHT_LED_MAP { 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 1, 2, 3 }
  36. #endif
  37. #define CAPS_PIN D3
  38. #define NUM_PIN F7
  39. #define SCROLL_PIN B0