logo

qmk_firmware

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

config.h (1514B)


  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 \
  16. (Port_D, MCU_GPIO, D0), \
  17. (Port_C, MCU_GPIO, C0), \
  18. (Port_E, MCU_GPIO, E0), \
  19. (Port_B, MCU_GPIO, B0)
  20. #define MATRIX_OUT_PINS \
  21. (0, Port_D, 4), \
  22. (1, Port_C, 6), \
  23. (2, Port_D, 7), \
  24. (3, Port_E, 6), \
  25. (4, Port_B, 4)
  26. #define MATRIX_EXTENSION_74HC157 B5
  27. #define MATRIX_IN_PORTS \
  28. (Port_Fa, MCU_GPIOa, F0), \
  29. (Port_Fb, MCU_GPIOb, F0), \
  30. (Port_Ba, MCU_GPIOa, B0), \
  31. (Port_Bb, MCU_GPIOb, B0)
  32. #define MATRIX_IN_PINS \
  33. (0, Port_Fa, 4), \
  34. (1, Port_Fb, 4), \
  35. (2, Port_Fa, 5), \
  36. (3, Port_Fb, 5), \
  37. (4, Port_Fa, 6), \
  38. (5, Port_Fb, 6), \
  39. (6, Port_Fa, 7), \
  40. (7, Port_Fb, 7), \
  41. (8, Port_Bb, 6), \
  42. (9, Port_Ba, 6), \
  43. (10, Port_Bb, 2), \
  44. (11, Port_Ba, 2), \
  45. (12, Port_Bb, 3), \
  46. (13, Port_Ba, 3), \
  47. (14, Port_Bb, 1), \
  48. (15, Port_Ba, 1)