logo

qmk_firmware

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

config.h (1762B)


  1. /*
  2. Copyright 2020-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. /* key matrix size */
  16. #define MATRIX_ROWS 5
  17. #define MATRIX_COLS 16
  18. /* Pro Micro **************************
  19. ====
  20. +-------====------+
  21. MDEBUG | D3/TXO RAW |
  22. | D2/RXI GND |
  23. | GND RST |
  24. | GND Vcc |
  25. | D1/SDA F4 | COL_0_1_L
  26. | D0/SCL F5 | COL_2_3_L
  27. ROW_0 | D4 F6 | COL_4_5_L
  28. ROW_1 | C6 F7 | COL_6_7_L
  29. ROW_2 | D7 SCK/B1 | COL_6_7_R
  30. ROW_3 | E6 MISO/B3 | COL_4_5_R
  31. ROW_4 | B4 MOSI/B2 | COL_2_3_R
  32. SEL_AB | B5 B6 | COL_0_1_R
  33. +-----------------+
  34. ***************************************/
  35. /* COL2ROW, ROW2COL */
  36. #define DIODE_DIRECTION COL2ROW
  37. /*
  38. * Feature disable options
  39. * These options are also useful to firmware size reduction.
  40. */
  41. /* disable debug print */
  42. //#define NO_DEBUG
  43. /* disable print */
  44. //#define NO_PRINT
  45. /* disable action features */
  46. //#define NO_ACTION_LAYER
  47. //#define NO_ACTION_TAPPING
  48. //#define NO_ACTION_ONESHOT
  49. #ifdef DEBUG_CONFIG
  50. # define MATRIX_DEBUG_PIN D3
  51. # include "../debug_config.h"
  52. #endif