config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* Copyright 2018 Maarten Dekkers <maartenwut@gmail.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. #ifndef CONFIG_H
  17. #define CONFIG_H
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x6050
  22. #define DEVICE_VER 0x0104
  23. #define MANUFACTURER Revo
  24. #define PRODUCT KMAC Kmini
  25. #define DESCRIPTION QMK keyboard firmware for Revo KMAC Mini
  26. /* key matrix size */
  27. #define MATRIX_ROWS 5
  28. #define MATRIX_COLS 17
  29. /*
  30. * Keyboard Matrix Assignments
  31. * The KMAC uses a demultiplexer for some of the cols.
  32. * See matrix.c for more details.
  33. */
  34. #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
  35. #define MATRIX_COL_PINS { }
  36. #define UNUSED_PINS
  37. /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
  38. #define DIODE_DIRECTION CUSTOM_MATRIX
  39. /* number of backlight levels */
  40. #define BACKLIGHT_LEVELS 3
  41. // #define BACKLIGHT_PIN B7
  42. // #define BACKLIGHT_BREATHING
  43. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  44. #define DEBOUNCING_DELAY 5
  45. /* key combination for magic key command */
  46. #define IS_COMMAND() ( \
  47. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  48. )
  49. #endif