config.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xCEEB
  5. #define PRODUCT_ID 0x1144
  6. #define DEVICE_VER 0x0100
  7. #define MANUFACTURER Keebio
  8. #define PRODUCT Chocopad
  9. #define DESCRIPTION 4x4 macropad using Kailh Choc low-profile switches
  10. /* key matrix size */
  11. #define MATRIX_ROWS 4
  12. #define MATRIX_COLS 4
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { D7, E6, B3, B2 }
  15. #define MATRIX_COL_PINS { D2, D4, F6, F5 }
  16. /* COL2ROW or ROW2COL */
  17. #define DIODE_DIRECTION COL2ROW
  18. /* number of backlight levels */
  19. #define BACKLIGHT_PIN B5
  20. #define BACKLIGHT_LEVELS 6
  21. /* Set 0 if debouncing isn't needed */
  22. #define DEBOUNCING_DELAY 5
  23. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  24. #define LOCKING_SUPPORT_ENABLE
  25. /* Locking resynchronize hack */
  26. #define LOCKING_RESYNC_ENABLE
  27. /* key combination for command */
  28. #define IS_COMMAND() ( \
  29. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  30. )
  31. /* prevent stuck modifiers */
  32. #define PREVENT_STUCK_MODIFIERS
  33. #ifdef RGB_DI_PIN
  34. #define RGBLIGHT_ANIMATIONS
  35. #define RGBLIGHT_HUE_STEP 8
  36. #define RGBLIGHT_SAT_STEP 8
  37. #define RGBLIGHT_VAL_STEP 8
  38. #endif
  39. #define RGB_DI_PIN D3
  40. #define RGBLIGHT_TIMER
  41. #define RGBLED_NUM 4
  42. #define ws2812_PORTREG PORTD
  43. #define ws2812_DDRREG DDRD