You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

  1. /* Copyright 2021 Danny Nguyen <danny@keeb.io>
  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. /* key matrix size */
  15. #define MATRIX_ROWS 5
  16. #define MATRIX_COLS 16
  17. #define ATMEGA_COLS 8
  18. /* key matrix pins */
  19. #define MATRIX_ROW_PINS { B1, B2, B3, C6, B6 }
  20. #define MATRIX_COL_PINS { F6, B5, B4, D7, D6, D5, D3, D2 }
  21. // MCP23018 pinout:
  22. // Rows: B4, B3, B2, B1, B0
  23. // Cols: A0, A1, A2, A3, A4, A5, A6, A7
  24. /* COL2ROW or ROW2COL */
  25. #define DIODE_DIRECTION COL2ROW
  26. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  27. #define LOCKING_SUPPORT_ENABLE
  28. /* Locking resynchronize hack */
  29. #define LOCKING_RESYNC_ENABLE