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.

95 lines
3.4 KiB

  1. /* Copyright 2021 CANARYTEAM <tuananhnguyen204@gmail.com>
  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. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0x4341
  19. #define PRODUCT_ID 0x0621
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER CANARY
  22. #define PRODUCT CANARY60RGB
  23. /* key matrix size */
  24. #define MATRIX_ROWS 5
  25. #define MATRIX_COLS 14
  26. /*
  27. * Keyboard Matrix Assignments
  28. *
  29. * Change this to how you wired your keyboard
  30. * COLS: AVR pins used for columns, left to right
  31. * ROWS: AVR pins used for rows, top to bottom
  32. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  33. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  34. *
  35. */
  36. #define MATRIX_ROW_PINS { F5, F4, F1, B3, B2 }
  37. #define MATRIX_COL_PINS { C7, F7, F6, F0, B0, B1, B4, D7, D6, D4, D5, D3, D2, B7 }
  38. #define UNUSED_PINS
  39. /* COL2ROW, ROW2COL*/
  40. #define DIODE_DIRECTION COL2ROW
  41. #define RGB_DI_PIN B6
  42. #ifdef RGB_DI_PIN
  43. # define RGBLIGHT_EFFECT_BREATHING
  44. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  45. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  46. # define RGBLIGHT_EFFECT_SNAKE
  47. # define RGBLIGHT_EFFECT_KNIGHT
  48. # define RGBLIGHT_EFFECT_CHRISTMAS
  49. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  50. # define RGBLIGHT_EFFECT_RGB_TEST
  51. # define RGBLIGHT_EFFECT_ALTERNATING
  52. # define RGBLIGHT_EFFECT_TWINKLE
  53. # define RGBLED_NUM 12
  54. # define RGBLIGHT_HUE_STEP 8
  55. # define RGBLIGHT_SAT_STEP 8
  56. # define RGBLIGHT_VAL_STEP 8
  57. # define RGBLIGHT_SLEEP
  58. #endif
  59. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  60. #define DEBOUNCE 5
  61. /* disable these deprecated features by default */
  62. #define NO_ACTION_MACRO
  63. #define NO_ACTION_FUNCTION
  64. #ifdef RGB_MATRIX_ENABLE
  65. # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  66. # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  67. # define RGB_MATRIX_KEYPRESSES
  68. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  69. # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  70. # define DISABLE_RGB_MATRIX_BAND_SAT
  71. # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  72. # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  73. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  74. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  75. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  76. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  77. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  78. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  79. # define DISABLE_RGB_MATRIX_SPLASH
  80. # define DISABLE_RGB_MATRIX_MULTISPLASH
  81. # define DISABLE_RGB_MATRIX_SOLID_SPLASH
  82. # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
  83. # define DISABLE_RGB_MATRIX_DIGITAL_RAIN
  84. # define DRIVER_ADDR_1 0b1010000
  85. # define DRIVER_COUNT 1
  86. # define DRIVER_LED_TOTAL 63
  87. #endif