logo

qmk_firmware

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

test_config_74hc157.h (794B)


  1. #pragma once
  2. #define MATRIX_EXTENSION_74HC157 B2
  3. // #define MATRIX_EXTENSION_74HC153 B2, B6
  4. // list of OUTPUT(row) ports
  5. #define MATRIX_OUT_PORTS (Port_D, MCU_GPIO, D0), (Port_C, MCU_GPIO, C0), (Port_E, MCU_GPIO, E0), (Port_B, MCU_GPIO, B0)
  6. // list of OUTPUT(row) pins
  7. #define MATRIX_OUT_PINS \
  8. (0, Port_D, 4), \
  9. (1, Port_C, 6), \
  10. (2, Port_D, 7), \
  11. (3, Port_E, 6), \
  12. (4, Port_B, 4), \
  13. (5, Port_B, 5)
  14. // list of INPUT(col) ports
  15. #define MATRIX_IN_PORTS \
  16. (Port_Fa, MCU_GPIOa, F0), \
  17. (Port_Ba, MCU_GPIOa, B0), \
  18. (Port_Fb, MCU_GPIOb, F0), \
  19. (Port_Bb, MCU_GPIOb, B0)
  20. // list of INPUT(col) pins
  21. #define MATRIX_IN_PINS \
  22. (0, Port_Fa, 4), \
  23. (1, Port_Fb, 5), \
  24. (2, Port_Fb, 6), \
  25. (3, Port_Fa, 7), \
  26. (4, Port_Ba, 1), \
  27. (5, Port_Bb, 3)