config.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * config.h
  3. *
  4. Copyright 2020 astro <yuleiz@gmail.com>
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0x60BE
  20. #define PRODUCT_ID 0x00BE
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER astro
  23. #define PRODUCT DP60
  24. #define DESCRIPTION 60% rgb keyboard with ble extension
  25. /* key matrix size */
  26. #define MATRIX_ROWS 5
  27. #define MATRIX_COLS 15
  28. #define UNUSED_PINS
  29. #define DIODE_DIRECTION COL2ROW
  30. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  31. #define DEBOUNCE 5
  32. /*
  33. * Feature disable options
  34. * These options are also useful to firmware size reduction.
  35. */
  36. /* disable debug print */
  37. //#define NO_DEBUG
  38. /* disable print */
  39. //#define NO_PRINT
  40. //rgb light setting
  41. #define RGBLED_NUM 18
  42. #define RGB_DI_PIN D7
  43. #define RGBLIGHT_ANIMATIONS
  44. #define RGBLIGHT_HUE_STEP 8
  45. #define RGBLIGHT_SAT_STEP 8
  46. #define RGBLIGHT_VAL_STEP 8
  47. //rgb matrix setting
  48. #define DRIVER_ADDR_1 0b1110100
  49. #define DRIVER_ADDR_2 0b1110111
  50. #define DRIVER_COUNT 2
  51. #define DRIVER_1_LED_TOTAL 36
  52. #define DRIVER_2_LED_TOTAL 36
  53. #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)