config.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* Copyright (C) 2019, 2020 Keyboard.io, Inc
  2. *
  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. *
  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. *
  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 4
  20. #define MATRIX_COLS 12
  21. /* define if matrix has ghost */
  22. //#define MATRIX_HAS_GHOST
  23. /* number of backlight levels */
  24. //#define BACKLIGHT_LEVELS 3
  25. /* Set 0 if debouncing isn't needed */
  26. #define DEBOUNCE 5
  27. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  28. #define LOCKING_SUPPORT_ENABLE
  29. /* Locking resynchronize hack */
  30. #define LOCKING_RESYNC_ENABLE
  31. /*
  32. * Keyboard Matrix Assignments
  33. *
  34. * Change this to how you wired your keyboard
  35. * COLS: AVR pins used for columns, left to right
  36. * ROWS: AVR pins used for rows, top to bottom
  37. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  38. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  39. *
  40. */
  41. #define MATRIX_ROW_PINS { F6, F5, F4, F1 }
  42. #define MATRIX_COL_PINS { F7, E2, C7, C6, B6, B5, D7, D6, D4, D5, D3, D2 }
  43. /* COL2ROW, ROW2COL*/
  44. #define DIODE_DIRECTION COL2ROW
  45. /*
  46. * Feature disable options
  47. * These options are also useful to firmware size reduction.
  48. */
  49. /* disable debug print */
  50. //#define NO_DEBUG
  51. /* disable print */
  52. //#define NO_PRINT
  53. /* disable action features */
  54. //#define NO_ACTION_LAYER
  55. //#define NO_ACTION_TAPPING
  56. //#define NO_ACTION_ONESHOT