config.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. Copyright 2017 Danny Nguyen <danny@hexwire.com>
  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. #undef MATRIX_ROWS
  16. #define MATRIX_ROWS 5
  17. #ifdef RGBLIGHT_ENABLE
  18. # undef RGBLED_NUM
  19. # define RGBLED_NUM 16
  20. # define RGBLIGHT_HUE_STEP 8
  21. # define RGBLIGHT_SAT_STEP 8
  22. # define RGBLIGHT_VAL_STEP 8
  23. # define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  24. # define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  25. #endif // RGBLIGHT_ENABLE
  26. #undef PRODUCT
  27. #define PRODUCT Drashnas Viterbi Macro Pad
  28. #ifdef AUDIO_ENABLE
  29. # define C6_AUDIO
  30. # define NO_MUSIC_MODE
  31. #endif
  32. // clang-format off
  33. #define LAYOUT_ortho_5x7( \
  34. L00, L01, L02, L03, L04, L05, L06, \
  35. L10, L11, L12, L13, L14, L15, L16, \
  36. L20, L21, L22, L23, L24, L25, L26, \
  37. L30, L31, L32, L33, L34, L35, L36, \
  38. L40, L41, L42, L43, L44, L45, L46 \
  39. ) \
  40. { \
  41. { L00, L01, L02, L03, L04, L05, L06 }, \
  42. { L10, L11, L12, L13, L14, L15, L16 }, \
  43. { L20, L21, L22, L23, L24, L25, L26 }, \
  44. { L30, L31, L32, L33, L34, L35, L36 }, \
  45. { L40, L41, L42, L43, L44, L45, L46 }, \
  46. }
  47. // clang-format on
  48. #define QMK_ESC_OUTPUT F5 // usually COL
  49. #define QMK_ESC_INPUT D4 // usually ROW
  50. #define QMK_LED B0
  51. #define QMK_SPEAKER C6