config.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0x5457 // "TW"
  5. #define PRODUCT_ID 0x6060
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER Barry
  8. #define PRODUCT CA66
  9. /* key matrix size */
  10. #define MATRIX_ROWS 5
  11. #define MATRIX_COLS 15
  12. /* key matrix pins 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14*/
  13. #define MATRIX_ROW_PINS { F5, F4, F1, B0, B3 }
  14. #define MATRIX_COL_PINS { F7, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, D2, F6, B7, E6 }
  15. #define UNUSED_PINS
  16. /* COL2ROW or ROW2COL */
  17. #define DIODE_DIRECTION COL2ROW
  18. #define LED_CAPS_LOCK_PIN D1
  19. /* number of backlight levels */
  20. #define BACKLIGHT_PIN F0
  21. #define BACKLIGHT_LEVELS 3
  22. /* Set 0 if debouncing isn't needed */
  23. #define DEBOUNCE 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. #define RGB_DI_PIN B1
  29. #ifdef RGB_DI_PIN
  30. #define RGBLIGHT_ANIMATIONS
  31. #define RGBLED_NUM 6
  32. #define RGBLIGHT_HUE_STEP 8
  33. #define RGBLIGHT_SAT_STEP 8
  34. #define RGBLIGHT_VAL_STEP 8
  35. #endif