2
0

config.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include "config_common.h"
  4. /* USB Device descriptor parameter */
  5. #define VENDOR_ID 0xCEEB
  6. #define PRODUCT_ID 0x1144
  7. #define DEVICE_VER 0x0100
  8. #define MANUFACTURER Keebio
  9. #define PRODUCT Chocopad
  10. #define DESCRIPTION 4x4 macropad using Kailh Choc low-profile switches
  11. /* key matrix size */
  12. #define MATRIX_ROWS 4
  13. #define MATRIX_COLS 4
  14. /* key matrix pins */
  15. #define MATRIX_ROW_PINS { D7, E6, B3, B2 }
  16. #define MATRIX_COL_PINS { D2, D4, F6, F5 }
  17. /* COL2ROW or ROW2COL */
  18. #define DIODE_DIRECTION COL2ROW
  19. /* number of backlight levels */
  20. #define BACKLIGHT_PIN B5
  21. #define BACKLIGHT_LEVELS 6
  22. /* Set 0 if debouncing isn't needed */
  23. #define DEBOUNCING_DELAY 5
  24. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  25. #define LOCKING_SUPPORT_ENABLE
  26. /* Locking resynchronize hack */
  27. #define LOCKING_RESYNC_ENABLE
  28. #ifdef RGB_DI_PIN
  29. #define RGBLIGHT_ANIMATIONS
  30. #define RGBLIGHT_HUE_STEP 8
  31. #define RGBLIGHT_SAT_STEP 8
  32. #define RGBLIGHT_VAL_STEP 8
  33. #endif
  34. #define RGB_DI_PIN D3
  35. #define RGBLED_NUM 4
  36. #endif