config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. Copyright 2017 Balz Guenat <balz.guenat@gmail.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. #ifndef CONFIG_H
  15. #define CONFIG_H
  16. // do not #include "config_common.h" because the pin names conflict with the USB HID code.
  17. // CUSTOM_MATRIX is defined it that file, though, and we need it, so we define it ourselves.
  18. // It's a hack, yeah...
  19. #define CUSTOM_MATRIX 2
  20. /* USB Device descriptor parameter */
  21. #define VENDOR_ID 0xFEED
  22. #define PRODUCT_ID 0x005B
  23. #define DEVICE_VER 0x0001
  24. #define MANUFACTURER QMK
  25. #define PRODUCT QMK USB-USB Converter
  26. #define DESCRIPTION USB to USB Keyboard Converter with QMK
  27. /* size of virtual matrix */
  28. #define MATRIX_ROWS 16
  29. #define MATRIX_COLS 16
  30. /* matrix scanning is done in custom_matrix.cpp */
  31. #define DIODE_DIRECTION CUSTOM_MATRIX
  32. /* key combination for command */
  33. #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
  34. /*
  35. * Feature disable options
  36. * These options are also useful to firmware size reduction.
  37. */
  38. /* disable debug print */
  39. //#define NO_DEBUG
  40. /* disable print */
  41. //#define NO_PRINT
  42. /* disable action features */
  43. //#define NO_ACTION_LAYER
  44. //#define NO_ACTION_TAPPING
  45. //#define NO_ACTION_ONESHOT
  46. //#define NO_ACTION_MACRO
  47. //#define NO_ACTION_FUNCTION
  48. #endif