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.

79 lines
3.0 KiB

  1. /* Copyright 2021 latincompass
  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. #include "config_common.h"
  19. #define VENDOR_ID 0x6C63 // "lc" = latincompass
  20. #define PRODUCT_ID 0x6C69 // "lp" = latin60RGB
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER latincompass
  23. #define PRODUCT Latin60RGB
  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 {C7, C6, B6, B5, B4 }
  38. #define MATRIX_COL_PINS {F7, F6, F5, F4, F1, F0, E6, B0, B1, B2, B3, D6, D4, D3}
  39. #define UNUSED_PINS
  40. /* COL2ROW, ROW2COL*/
  41. #define DIODE_DIRECTION ROW2COL
  42. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  43. #define DEBOUNCE 3
  44. /* disable these deprecated features by default */
  45. #define NO_ACTION_MACRO
  46. #define NO_ACTION_FUNCTION
  47. #ifdef RGB_MATRIX_ENABLE
  48. # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  49. # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  50. # define RGB_MATRIX_KEYPRESSES
  51. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  52. # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  53. # define DISABLE_RGB_MATRIX_BAND_SAT
  54. # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  55. # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  56. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  57. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  58. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  59. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  60. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  61. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  62. # define DISABLE_RGB_MATRIX_SPLASH
  63. # define DISABLE_RGB_MATRIX_MULTISPLASH
  64. # define DISABLE_RGB_MATRIX_SOLID_SPLASH
  65. # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
  66. # define DISABLE_RGB_MATRIX_DIGITAL_RAIN
  67. # define DRIVER_ADDR_1 0b1010000
  68. # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
  69. # define DRIVER_COUNT 2
  70. # define DRIVER_1_LED_TOTAL 60
  71. # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
  72. #endif