config.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* Copyright 2021 dztech
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  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 0x4B42
  20. #define PRODUCT_ID 0x0008
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER KBDFANS
  23. #define PRODUCT BELLA RGB ANSI
  24. /* key matrix size */
  25. #define MATRIX_ROWS 6
  26. #define MATRIX_COLS 16
  27. #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7, B6 }
  28. #define MATRIX_COL_PINS { C6, C7, F7, F6, F5, F4, F1, F0, D2, D3, D5, D4, D6, D7, B4, B5 }
  29. #define UNUSED_PINS
  30. #define DIODE_DIRECTION COL2ROW
  31. #define DEBOUNCE 5
  32. /* disable these deprecated features by default */
  33. #ifdef RGB_MATRIX_ENABLE
  34. #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  35. #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  36. #define RGB_MATRIX_KEYPRESSES
  37. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  38. #define RGB_MATRIX_LED_PROCESS_LIMIT 4
  39. #define RGB_MATRIX_LED_FLUSH_LIMIT 26
  40. #define DISABLE_RGB_MATRIX_SPLASH
  41. #define DISABLE_RGB_MATRIX_MULTISPLASH
  42. #define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
  43. //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
  44. #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
  45. #define DRIVER_ADDR_1 0b0110000
  46. #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons.
  47. #define DRIVER_COUNT 1
  48. #define DRIVER_1_LED_TOTAL 108
  49. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
  50. #define DRIVER_INDICATOR_LED_TOTAL 0
  51. #endif
  52. #define DYNAMIC_KEYMAP_LAYER_COUNT 2