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.

73 lines
2.6 KiB

  1. /*
  2. Copyright 2020 Terry Mathews
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #include "config_common.h"
  16. /* USB Device descriptor parameter */
  17. #define VENDOR_ID 0x544B //TK
  18. #define PRODUCT_ID 0x0008
  19. #define DEVICE_VER 0x0001
  20. #define MANUFACTURER TKC
  21. #define PRODUCT Portico
  22. /* key matrix size */
  23. #define MATRIX_ROWS 5
  24. #define MATRIX_COLS 15
  25. #define MATRIX_ROW_PINS { B6, C6, C7, F7, D2 }
  26. #define MATRIX_COL_PINS { D3, D5, D4, D6, D7, B4, B5, F6, F5, F4, F1, B0, B1, B2, B3 }
  27. /* COL2ROW, ROW2COL*/
  28. #define DIODE_DIRECTION COL2ROW
  29. /* disable these deprecated features by default */
  30. #define NO_ACTION_MACRO
  31. #define NO_ACTION_FUNCTION
  32. #ifdef RGB_MATRIX_ENABLE
  33. # define RGB_MATRIX_LED_PROCESS_LIMIT 4
  34. # define RGB_MATRIX_LED_FLUSH_LIMIT 26
  35. # define DEBOUNCE 3
  36. # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  37. # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  38. # define RGB_MATRIX_KEYPRESSES
  39. # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  40. # define DISABLE_RGB_MATRIX_BAND_SAT
  41. # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  42. # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  43. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  44. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  45. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  46. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  47. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  48. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  49. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  50. # define DISABLE_RGB_MATRIX_SPLASH
  51. # define DISABLE_RGB_MATRIX_MULTISPLASH
  52. # define DISABLE_RGB_MATRIX_SOLID_SPLASH
  53. # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
  54. # define DISABLE_RGB_MATRIX_DIGITAL_RAIN
  55. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
  56. # define DRIVER_ADDR_1 0x74
  57. # define DRIVER_ADDR_2 0x77
  58. # define DRIVER_COUNT 2
  59. # define DRIVER_1_LED_TOTAL 36
  60. # define DRIVER_2_LED_TOTAL 31
  61. # define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
  62. #endif