config.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include "config_common.h"
  4. /* USB Device descriptor parameter */
  5. #define PRODUCT S65-X-RGB
  6. #define DESCRIPTION QMK keyboard firmware for S65-X RGB
  7. #define VENDOR_ID 0xFEED
  8. #define PRODUCT_ID 0x6060
  9. #define DEVICE_VER 0x0001
  10. #define MANUFACTURER Sentraq
  11. /* key matrix size */
  12. #define MATRIX_ROWS 5
  13. #define MATRIX_COLS 18
  14. /* key matrix pins */
  15. #define MATRIX_ROW_PINS { C7, C6, B6, B5, B4 }
  16. #define MATRIX_COL_PINS { F6, F5, F4, F1, F0, E6, B0, B1, D5, B2, B3, D0, D1, D2, D4, D6, D7, F7 }
  17. #define UNUSED_PINS
  18. /* number of backlight levels */
  19. #define BACKLIGHT_PIN B7
  20. #define BACKLIGHT_LEVELS 3
  21. #define RGB_DI_PIN D3
  22. #define RGBLIGHT_ANIMATIONS
  23. #define RGBLED_NUM 20
  24. #define RGBLIGHT_HUE_STEP 8
  25. #define RGBLIGHT_SAT_STEP 8
  26. #define RGBLIGHT_VAL_STEP 8
  27. #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 20
  28. /* COL2ROW or ROW2COL */
  29. #define DIODE_DIRECTION COL2ROW
  30. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  31. #define DEBOUNCING_DELAY 5
  32. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  33. #define LOCKING_SUPPORT_ENABLE
  34. /* Locking resynchronize hack */
  35. #define LOCKING_RESYNC_ENABLE
  36. /* key combination for command */
  37. #define IS_COMMAND() ( \
  38. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  39. )
  40. /* prevent stuck modifiers */
  41. #define PREVENT_STUCK_MODIFIERS
  42. #endif