config.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include "config_common.h"
  4. /* USB Device descriptor parameter */
  5. #define VENDOR_ID 0xFEED
  6. #define PRODUCT_ID 0x6060
  7. #define DEVICE_VER 0x0001
  8. #define MANUFACTURER GON
  9. #define PRODUCT NerD
  10. #define DESCRIPTION QMK port for the GON Nerd PCB
  11. /* key matrix size */
  12. #define MATRIX_ROWS 10
  13. #define MATRIX_COLS 9
  14. /* backlight */
  15. #define BACKLIGHT_PIN B7
  16. #define BACKLIGHT_LEVELS 3
  17. /* matrix pins */
  18. #define MATRIX_ROW_PINS { B4, E2, F4, F7, F1, F6, C6, F5, D7, C7 }
  19. #define MATRIX_COL_PINS { E6, B0, B1, B2, B3, F0, D0, D5, D1 }
  20. #define UNUSED_PINS
  21. /* COL2ROW or ROW2COL */
  22. #define DIODE_DIRECTION COL2ROW
  23. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  24. #define DEBOUNCING_DELAY 5
  25. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  26. #define LOCKING_SUPPORT_ENABLE
  27. /* Locking resynchronize hack */
  28. #define LOCKING_RESYNC_ENABLE
  29. /* key combination for magic key command */
  30. #define IS_COMMAND() ( \
  31. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  32. )
  33. #endif