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.

110 lines
6.7 KiB

  1. /* Copyright 2021 Tybera
  2. * Copyright 2021 thewerther
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  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. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0x6964 /* "id" */
  21. #define PRODUCT_ID 0x0067
  22. #define DEVICE_VER 0x0002
  23. #define MANUFACTURER IDOBAO
  24. #define PRODUCT ID67
  25. /* key matrix size */
  26. #define MATRIX_ROWS 5
  27. #define MATRIX_COLS 15
  28. /*
  29. * Keyboard Matrix Assignments
  30. *
  31. * Change this to how you wired your keyboard
  32. * COLS: AVR pins used for columns, left to right
  33. * ROWS: AVR pins used for rows, top to bottom
  34. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  35. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  36. *
  37. */
  38. #define MATRIX_ROW_PINS { B0, B1, B2, B3, F7 }
  39. #define MATRIX_COL_PINS { C7, F6, F5, F4, F1, B7, D5, D1, D2, D3, D4, D0, D6, D7, B4 }
  40. #define DIODE_DIRECTION COL2ROW
  41. #define RGB_DI_PIN F0
  42. // RGB Matrix config
  43. #if defined(RGB_MATRIX_ENABLE)
  44. #ifndef ID67_DISABLE_UNDERGLOW
  45. #define DRIVER_LED_TOTAL 77
  46. #else
  47. #define DRIVER_LED_TOTAL 67
  48. #endif
  49. #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  50. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to x out of 255. If not defined maximum brightness is set to 255
  51. #define RGB_MATRIX_KEYPRESSES
  52. #define ENABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
  53. #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
  54. #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT // Static gradient left to right, speed controls how much gradient changes
  55. #define ENABLE_RGB_MATRIX_BREATHING // Single hue brightness cycling animation
  56. #define ENABLE_RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
  57. #define ENABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
  58. #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
  59. #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
  60. #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT // Single hue spinning spiral fades saturation
  61. #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL // Single hue spinning spiral fades brightness
  62. #define ENABLE_RGB_MATRIX_CYCLE_ALL // Full keyboard solid hue cycling through full gradient
  63. #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
  64. #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
  65. #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
  66. #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
  67. #define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Full gradient Chevron shaped scrolling left to right
  68. #define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard
  69. #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
  70. #define ENABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
  71. #define ENABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
  72. #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
  73. #define ENABLE_RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue
  74. #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation
  75. #define ENABLE_RGB_MATRIX_HUE_BREATHING // Hue shifts up a slight amount at the same time, then shifts back
  76. #define ENABLE_RGB_MATRIX_HUE_PENDULUM // Hue shifts up a slight amount in a wave to the right, then back to the left
  77. #define ENABLE_RGB_MATRIX_HUE_WAVE // Hue shifts up a slight amount and then back down in a wave to the right
  78. // don't need `#if`, animation modes themselves check defines
  79. // #if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS)
  80. // #define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  81. // #define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  82. // #endif // #if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS)
  83. // don't need `#if`, animation modes themselves check defines
  84. // #if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
  85. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE// Pulses keys hit to hue & value then fades value out
  86. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
  87. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
  88. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
  89. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
  90. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
  91. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
  92. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
  93. #define ENABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
  94. #define ENABLE_RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
  95. #define ENABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
  96. #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
  97. // #endif // #if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
  98. #endif // #if defined(RGB_MATRIX_ENABLE)