config.h 1.8 KB

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