logo

qmk_firmware

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

config.h (2035B)


  1. /*
  2. * Copyright 2020 Michael Schwingen
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. /* key matrix size */
  18. #define MATRIX_ROWS 16
  19. #define MATRIX_COLS 8
  20. /* pins for external shift registers */
  21. #define SR_LOAD_PIN B0
  22. #define SR_CLK_PIN B1
  23. #define SR_DIN_PIN B3
  24. #define SR_DOUT_PIN B2
  25. /*
  26. * Feature disable options
  27. * These options are also useful to firmware size reduction.
  28. */
  29. /* disable debug print */
  30. //#define NO_DEBUG
  31. /* disable print */
  32. //#define NO_PRINT
  33. #define NORMAL_PRINT
  34. //#define USER_PRINT
  35. /* disable action features */
  36. //#define NO_ACTION_LAYER
  37. //#define NO_ACTION_TAPPING
  38. //#define NO_ACTION_ONESHOT
  39. //#define DEBUG_MATRIX_SCAN_RATE
  40. #define DYNAMIC_MACRO_NO_NESTING
  41. #define MODELM_STATUS_LED E6
  42. #define MODELM_LED1 B5
  43. #define MODELM_LED2 B6
  44. #define MODELM_LED3 D0
  45. #if defined(KEYBOARD_ibm_model_m_mschwingen_led_wired)
  46. # define MODELM_LED_CAPSLOCK MODELM_LED1
  47. # define MODELM_LED_SCROLLOCK MODELM_LED2
  48. # define MODELM_LED_NUMLOCK MODELM_LED3
  49. #elif defined(KEYBOARD_ibm_model_m_mschwingen_led_ffc)
  50. # define MODELM_LED_CAPSLOCK MODELM_LED2
  51. # define MODELM_LED_SCROLLOCK MODELM_LED3
  52. # define MODELM_LED_NUMLOCK MODELM_LED1
  53. #elif defined(KEYBOARD_ibm_model_m_mschwingen_led_ws2812)
  54. # define WS2812_LED_COUNT 3
  55. #else
  56. # error one of MODELM_LEDS_FFC, MODELM_LEDS_WIRED or MODELM_LEDS_WS2812 must be set!
  57. #endif
  58. // disabled, needs PCB patch.
  59. //#define AUDIO_PIN C6
  60. //#define NO_MUSIC_MODE