config.h 1006 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include "config_common.h"
  4. /* USB Device descriptor parameter */
  5. #define VENDOR_ID 0xCB10
  6. #define PRODUCT_ID 0x1144
  7. #define DEVICE_VER 0x0100
  8. #define MANUFACTURER Keebio
  9. #define PRODUCT Chocopad
  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 DEBOUNCE 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. #ifdef RGB_DI_PIN
  28. #define RGBLIGHT_ANIMATIONS
  29. #define RGBLIGHT_HUE_STEP 8
  30. #define RGBLIGHT_SAT_STEP 8
  31. #define RGBLIGHT_VAL_STEP 8
  32. #endif
  33. #define RGB_DI_PIN D3
  34. #define RGBLED_NUM 4
  35. #endif