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.

68 lines
1.9 KiB

  1. /* Copyright 2021 UTDKeyboard & Dominic Gan
  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 0xFEED
  20. #define PRODUCT_ID 0x001C
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER UTD
  23. #define PRODUCT UTD80
  24. /* key matrix size */
  25. #define MATRIX_ROWS 6
  26. #define MATRIX_COLS 16
  27. // ROWS: Top to bottom, COLS: Left to right
  28. #define MATRIX_ROW_PINS { B4, D5, D0, B2, B3, B0 }
  29. #define MATRIX_COL_PINS { B1, F0, F1, F4, F5, F6, F7, C7, C6, D3, E6, D7, D6, D4, D2, D1 }
  30. #define UNUSED_PINS
  31. #define BACKLIGHT_PIN B7
  32. #define BACKLIGHT_BREATHING
  33. #ifdef BACKLIGHT_PIN
  34. #define BACKLIGHT_LEVELS 3
  35. #endif
  36. /* COL2ROW or ROW2COL */
  37. #define DIODE_DIRECTION COL2ROW
  38. #define LED_CAPS_LOCK_PIN B6
  39. #define LED_SCROLL_LOCK_PIN B5
  40. /* define if matrix has ghost */
  41. //#define MATRIX_HAS_GHOST
  42. /* Set 0 if debouncing isn't needed */
  43. #define DEBOUNCE 5
  44. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  45. #define LOCKING_SUPPORT_ENABLE
  46. /* Locking resynchronize hack */
  47. #define LOCKING_RESYNC_ENABLE
  48. #define RGB_DI_PIN E2
  49. #ifdef RGB_DI_PIN
  50. #define RGBLIGHT_ANIMATIONS
  51. #define RGBLED_NUM 4
  52. #define RGBLIGHT_HUE_STEP 8
  53. #define RGBLIGHT_SAT_STEP 8
  54. #define RGBLIGHT_VAL_STEP 8
  55. #endif