logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (1296B)


  1. /*
  2. Copyright 2021 mtei
  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. #define MATRIX_OUT_PORTS (Port_A, MCU_GPIO, A0)
  16. #define MATRIX_OUT_PINS \
  17. (0, Port_A, 4), \
  18. (1, Port_A, 5), \
  19. (2, Port_A, 6), \
  20. (3, Port_A, 7), \
  21. (4, Port_A, 8)
  22. #define MATRIX_IN_PORTS \
  23. (Port_A, MCU_GPIO, A0), (Port_B, MCU_GPIO, B0)
  24. #define MATRIX_IN_PINS \
  25. (0, Port_A, 2), \
  26. (1, Port_A, 1), \
  27. (2, Port_A, 0), \
  28. (3, Port_B, 8), \
  29. (4, Port_B, 13), \
  30. (5, Port_B, 14), \
  31. (6, Port_B, 15), \
  32. (7, Port_B, 9), \
  33. (8, Port_B, 0), \
  34. (9, Port_B, 1), \
  35. (10, Port_B, 2), \
  36. (11, Port_B, 3), \
  37. (12, Port_B, 4), \
  38. (13, Port_B, 5), \
  39. (14, Port_B, 6), \
  40. (15, Port_B, 7)