You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.5 KiB

  1. /**
  2. * config.h
  3. *
  4. */
  5. #pragma once
  6. #include "config_common.h"
  7. /* USB Device descriptor parameter */
  8. #define VENDOR_ID 0xDEAD
  9. #define PRODUCT_ID 0xFEED
  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. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  23. #define DEBOUNCE 5
  24. /*
  25. * Feature disable options
  26. * These options are also useful to firmware size reduction.
  27. */
  28. /* disable debug print */
  29. //#define NO_DEBUG
  30. /* disable print */
  31. //#define NO_PRINT
  32. /* disable action features */
  33. //#define NO_ACTION_LAYER
  34. //#define NO_ACTION_TAPPING
  35. //#define NO_ACTION_ONESHOT
  36. //#define NO_ACTION_MACRO
  37. //#define NO_ACTION_FUNCTION
  38. //rgb light setting
  39. #define RGBLED_NUM 6
  40. #define RGB_DI_PIN B7
  41. #define RGBLIGHT_ANIMATIONS
  42. #define RGBLIGHT_HUE_STEP 8
  43. #define RGBLIGHT_SAT_STEP 8
  44. #define RGBLIGHT_VAL_STEP 8
  45. #define DRIVER_ADDR_1 0b1010000
  46. #define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
  47. #define DRIVER_COUNT 2
  48. #define DRIVER_1_LED_TOTAL 63
  49. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
  50. // tapping setting
  51. #define TAPPING_TERM 200
  52. #define RETRO_TAPPING
  53. #define PERMISSIVE_HOLD