config.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. Copyright 2019 @foostan
  3. Copyright 2020 Drashna Jaelre <@drashna>
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #pragma once
  16. #include "config_common.h"
  17. /* key matrix size */
  18. // Rows are doubled-up
  19. #define MATRIX_ROWS 8
  20. #define MATRIX_COLS 6
  21. #define MATRIX_ROW_PINS \
  22. { D4, C6, D7, E6 }
  23. // wiring of each half
  24. #define MATRIX_COL_PINS \
  25. { F4, F5, F6, F7, B1, B3 }
  26. // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order
  27. /* define if matrix has ghost */
  28. //#define MATRIX_HAS_GHOST
  29. /* number of backlight levels */
  30. // #define BACKLIGHT_LEVELS 3
  31. /* Set 0 if debouncing isn't needed */
  32. #define DEBOUNCE 5
  33. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  34. //#define LOCKING_SUPPORT_ENABLE
  35. /* Locking resynchronize hack */
  36. //#define LOCKING_RESYNC_ENABLE
  37. /*
  38. * Feature disable options
  39. * These options are also useful to firmware size reduction.
  40. */
  41. /* disable debug print */
  42. // #define NO_DEBUG
  43. /* disable print */
  44. // #define NO_PRINT
  45. /* disable action features */
  46. //#define NO_ACTION_LAYER
  47. //#define NO_ACTION_TAPPING
  48. //#define NO_ACTION_ONESHOT