logo

qmk_firmware

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

config.h (1946B)


  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. /* key matrix size */
  16. #define MATRIX_ROWS 5
  17. #define MATRIX_COLS 16
  18. /* Proton-C **************************
  19. ====
  20. +-------====------+
  21. DEBUG | A9/TX/SCL2 5V | (VUSB)
  22. | A10/RX/SDA2 GND |
  23. | GND FLASH |
  24. | GND 3.3V | (VCC)
  25. C15 | B7/SDA1 A2 | C0
  26. C14 | B6/SCL1 A1 | C1
  27. C13 | B5 A0 | C2
  28. C12 | B4 SCL1/B8 | C3
  29. C11 | B3 SCLK/B13 | C4
  30. C10 | B2 MISO/B14 | C5
  31. C9 | B1 MOSI/B15 | C6
  32. C8 | B0 SDA1/B9 | C7
  33. +---+ +---+
  34. +---+ +---+
  35. R0 | A4 B10 |
  36. R1 | A5 B11 |
  37. R2 | A6 B12 |
  38. R3 | A7 A14 |
  39. R4 | A8 A13 |
  40. | A15 RST |
  41. +-----------------+
  42. ***************************************/
  43. /* COL2ROW, ROW2COL */
  44. #define DIODE_DIRECTION COL2ROW
  45. /*
  46. * Feature disable options
  47. * These options are also useful to firmware size reduction.
  48. */
  49. /* disable debug print */
  50. //#define NO_DEBUG
  51. /* disable print */
  52. //#define NO_PRINT
  53. /* disable action features */
  54. //#define NO_ACTION_LAYER
  55. //#define NO_ACTION_TAPPING
  56. //#define NO_ACTION_ONESHOT
  57. #ifdef DEBUG_CONFIG
  58. # define MATRIX_DEBUG_PIN A9
  59. # include "../debug_config.h"
  60. #endif