config.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Copyright 2021 Mike Tsao
  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. // config.h
  17. #pragma once
  18. #include "config_common.h"
  19. // USB Device descriptor parameters
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x8889
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER github.com/sowbug
  24. #define PRODUCT ANSI TKL
  25. #define DESCRIPTION A tenkeyless ANSI-layout keyboard
  26. // key matrix size
  27. #define MATRIX_ROWS 6
  28. #define MATRIX_COLS 17
  29. // key matrix pins
  30. #define MATRIX_ROW_PINS \
  31. { C14, C15, A0, A1, A2, A3 }
  32. #define MATRIX_COL_PINS \
  33. { A4, A5, A6, A7, B0, B1, B10, B11, B12, B13, B14, B15, A8, A9, A10, A15, B3 }
  34. #define UNUSED_PINS
  35. // COL2ROW or ROW2COL
  36. #define DIODE_DIRECTION COL2ROW
  37. #define RGB_DI_PIN B9
  38. #define RGB_MATRIX_KEYPRESSES
  39. #define DRIVER_LED_TOTAL (87)
  40. #define RGBLED_NUM (DRIVER_LED_TOTAL)
  41. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  42. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128
  43. // Want backlighting and RGB Matrix patterns? See the note in the readme,
  44. // apply the patches, and then uncomment the line below as well as the ones
  45. // in rules.mk.
  46. //
  47. // #define BACKLIGHT_PIN rgb_matrix