config.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 Cartel
  8. #define PRODUCT Contra
  9. #define DESCRIPTION Keyboard
  10. /* key matrix size */
  11. #define MATRIX_ROWS 4
  12. #define MATRIX_COLS 12
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { F6, B3, B2, B6 }
  15. #define MATRIX_COL_PINS { F4, F5, B5, B4, E6, D7, C6, D4, D0, D1, D2, D3 }
  16. #define UNUSED_PINS
  17. /* COL2ROW or ROW2COL */
  18. #define DIODE_DIRECTION COL2ROW
  19. /* number of backlight levels */
  20. #ifdef BACKLIGHT_PIN
  21. #define BACKLIGHT_LEVELS 0
  22. #endif
  23. /* Set 0 if debouncing isn't 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 command */
  30. #define IS_COMMAND() ( \
  31. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  32. )
  33. /* prevent stuck modifiers */
  34. #define PREVENT_STUCK_MODIFIERS
  35. #ifdef RGB_DI_PIN
  36. #define RGBLIGHT_ANIMATIONS
  37. #define RGBLED_NUM 0
  38. #define RGBLIGHT_HUE_STEP 8
  39. #define RGBLIGHT_SAT_STEP 8
  40. #define RGBLIGHT_VAL_STEP 8
  41. #endif