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.

99 lines
3.2 KiB

  1. /* Copyright 2021 Play Keyboard
  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 0x706B // Play Keyboard
  20. #define PRODUCT_ID 0x3634
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Play Keyboard
  23. #define PRODUCT Play Keyboard 64 RGB
  24. /* key matrix size */
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 14
  27. /*
  28. * Keyboard Matrix Assignments
  29. *
  30. * Change this to how you wired your keyboard
  31. * COLS: AVR pins used for columns, left to right
  32. * ROWS: AVR pins used for rows, top to bottom
  33. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  34. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  35. *
  36. */
  37. #define MATRIX_ROW_PINS { D7, D6, D5, D3, D2 }
  38. #define MATRIX_COL_PINS { B5, B6, C6, C7, F7, F6, F5, F4, F1, F0, B1, B2, B3, B7 }
  39. /* COL2ROW, ROW2COL*/
  40. #define DIODE_DIRECTION COL2ROW
  41. #ifdef RGB_MATRIX_ENABLE
  42. #define RGB_MATRIX_KEYPRESSES
  43. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  44. #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
  45. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160
  46. #define RGB_MATRIX_LED_PROCESS_LIMIT 20
  47. #define RGB_MATRIX_LED_FLUSH_LIMIT 26
  48. #define DRIVER_ADDR_1 0b1010000
  49. #define DRIVER_COUNT 1
  50. #define DRIVER_LED_TOTAL 64
  51. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  52. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  53. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  54. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  55. #define DISABLE_RGB_MATRIX_BAND_SAT
  56. #define DISABLE_RGB_MATRIX_BAND_VAL
  57. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  58. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  59. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  60. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  61. #endif
  62. #define RGB_DI_PIN B0
  63. #ifdef RGB_DI_PIN
  64. # define RGBLIGHT_EFFECT_BREATHING
  65. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  66. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  67. # define RGBLIGHT_EFFECT_SNAKE
  68. # define RGBLIGHT_EFFECT_KNIGHT
  69. # define RGBLIGHT_EFFECT_CHRISTMAS
  70. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  71. // # define RGBLIGHT_EFFECT_ALTERNATING
  72. # define RGBLIGHT_EFFECT_TWINKLE
  73. # define RGBLED_NUM 18
  74. # define RGBLIGHT_HUE_STEP 5
  75. # define RGBLIGHT_SAT_STEP 5
  76. # define RGBLIGHT_VAL_STEP 5
  77. # define RGBLIGHT_SLEEP
  78. #endif
  79. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  80. #define DEBOUNCE 5
  81. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  82. #define LOCKING_SUPPORT_ENABLE
  83. /* Locking resynchronize hack */
  84. #define LOCKING_RESYNC_ENABLE
  85. /* VIA related config */
  86. #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2