logo

qmk_firmware

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

config.h (1736B)


  1. /*
  2. Copyright 2020 sekigon-gonnoc
  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 10
  17. #define MATRIX_COLS 8
  18. /* EC switch threshold with hysteresis */
  19. #define HIGH_THRESHOLD 300
  20. #define LOW_THRESHOLD 200
  21. /*
  22. * Keyboard Matrix Assignments
  23. *
  24. * Change this to how you wired your keyboard
  25. * COLS: AVR pins used for columns, left to right
  26. * ROWS: AVR pins used for rows, top to bottom
  27. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  28. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  29. *
  30. */
  31. #define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
  32. #define MATRIX_COL_CHANNELS { 2, 1, 0, 3, 5, 7, 6, 4 }
  33. #define DISCHARGE_PIN B1
  34. #define ANALOG_PORT F6
  35. #define MUX_SEL_PINS { D1, D0, D4 }
  36. /* COL2ROW, ROW2COL */
  37. #define DIODE_DIRECTION COL2ROW
  38. #define EE_HANDS
  39. /*
  40. * Feature disable options
  41. * These options are also useful to firmware size reduction.
  42. */
  43. /* disable debug print */
  44. //#define NO_DEBUG
  45. /* disable print */
  46. //#define NO_PRINT
  47. /* disable action features */
  48. //#define NO_ACTION_LAYER
  49. //#define NO_ACTION_TAPPING
  50. //#define NO_ACTION_ONESHOT