config.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0x0007
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER jacky
  8. #define PRODUCT S7 Elephant
  9. #define DESCRIPTION A high-end 70% custom keyboard
  10. /* key matrix size */
  11. #define MATRIX_ROWS 5
  12. #define MATRIX_COLS 16
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4 }
  15. #define MATRIX_COL_PINS { B6, D0, D1, D2, D3, D4, D5, D6, D7, C6, C7, F4, F5, F6, F7, F1 }
  16. #define UNUSED_PINS
  17. /* COL2ROW or ROW2COL */
  18. #define DIODE_DIRECTION COL2ROW
  19. /* Set 0 if debouncing isn't needed */
  20. #define DEBOUNCING_DELAY 5
  21. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  22. #define LOCKING_SUPPORT_ENABLE
  23. /* Locking resynchronize hack */
  24. #define LOCKING_RESYNC_ENABLE
  25. /* key combination for command */
  26. #define IS_COMMAND() ( \
  27. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  28. )
  29. #define RGB_DI_PIN E6
  30. #ifdef RGB_DI_PIN
  31. #define RGBLIGHT_ANIMATIONS
  32. #define RGBLED_NUM 2
  33. #define RGBLIGHT_HUE_STEP 8
  34. #define RGBLIGHT_SAT_STEP 8
  35. #define RGBLIGHT_VAL_STEP 8
  36. #define RGBLIGHT_SLEEP
  37. #endif