config.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /* key combination for command */
  29. #define IS_COMMAND() ( \
  30. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  31. )
  32. #ifdef RGB_DI_PIN
  33. #define RGBLIGHT_ANIMATIONS
  34. #define RGBLIGHT_HUE_STEP 8
  35. #define RGBLIGHT_SAT_STEP 8
  36. #define RGBLIGHT_VAL_STEP 8
  37. #endif
  38. #define RGB_DI_PIN D3
  39. #define RGBLED_NUM 4
  40. #endif