2
0

config.h 864 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0x6060
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER QMK Community
  8. #define PRODUCT Pteron Keyboard
  9. #define DESCRIPTION Pteron Keyboard
  10. /* key matrix size */
  11. #define MATRIX_ROWS 5
  12. #define MATRIX_COLS 12
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { D7, E6, B4, B5, B6 }
  15. #define MATRIX_COL_PINS { F4, F6, F5, F7, B1, B3, C6, D4, D0, D1, D2, D3 }
  16. #define UNUSED_PINS
  17. /* COL2ROW or ROW2COL */
  18. #define DIODE_DIRECTION ROW2COL
  19. /* Set 0 if debouncing isn't needed */
  20. #define DEBOUNCING_DELAY 5 // 5 is default
  21. /* key combination for command */
  22. #define IS_COMMAND() ( \
  23. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  24. )
  25. /* prevent stuck modifiers */
  26. #define PREVENT_STUCK_MODIFIERS