logo

qmk_firmware

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

config.h (1424B)


  1. /*
  2. Copyright 2021 weteor
  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. /* key matrix size */
  16. #define MATRIX_ROWS 8
  17. #define MATRIX_COLS 10
  18. #define MATRIX_ROWS_PER_SIDE (MATRIX_ROWS / 2)
  19. #define MATRIX_COLS_PER_SIDE (MATRIX_COLS / 2)
  20. /*
  21. * Keyboard Matrix Assignments
  22. *
  23. * Change this to how you wired your keyboard
  24. * COLS: AVR pins used for columns, left to right
  25. * ROWS: AVR pins used for rows, top to bottom
  26. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  27. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  28. *
  29. */
  30. #define MATRIX_ROW_PINS_L { B0, B1, B2, B4}
  31. #define MATRIX_COL_PINS_L { B3, E6, F7, B6, B5 }
  32. #define MATRIX_ROW_PINS_R { P10, P11, P12, P05 }
  33. #define MATRIX_COL_PINS_R { P06, P13, P14, P01, P00 }
  34. /* COL2ROW, ROW2COL */
  35. #define DIODE_DIRECTION COL2ROW