config.h 978 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * config.h
  3. *
  4. */
  5. #pragma once
  6. #include "config_common.h"
  7. /* USB Device descriptor parameter */
  8. #define VENDOR_ID 0x4154 //AT
  9. #define PRODUCT_ID 0x4536 //E6
  10. #define DEVICE_VER 0x0062
  11. #define MANUFACTURER astro
  12. #define PRODUCT e6rgb
  13. #define DESCRIPTION 60% rgb keyboard
  14. /* key matrix size */
  15. #define MATRIX_ROWS 5
  16. #define MATRIX_COLS 14
  17. /* key matrix pins */
  18. #define MATRIX_ROW_PINS { F1, F4, F5, F6, D6 }
  19. #define MATRIX_COL_PINS { D7, B4, B5, B6, C6, C7, F7, F0, B0, B1, D2, D3, B3, B2 }
  20. #define UNUSED_PINS
  21. #define DIODE_DIRECTION COL2ROW
  22. //rgb light setting
  23. #define RGBLED_NUM 6
  24. #define RGB_DI_PIN B7
  25. #define RGBLIGHT_ANIMATIONS
  26. #define RGBLIGHT_HUE_STEP 8
  27. #define RGBLIGHT_SAT_STEP 8
  28. #define RGBLIGHT_VAL_STEP 8
  29. #define DRIVER_ADDR_1 0b1010000
  30. #define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
  31. #define DRIVER_COUNT 2
  32. #define DRIVER_1_LED_TOTAL 63
  33. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL