config.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* Copyright 2017 Jason Williams (Wilba)
  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 0x5845 // XE
  20. #define PRODUCT_ID 0x0060 // Dawn60
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Xelus
  23. #define PRODUCT Dawn60
  24. // key matrix size
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 14
  27. //underglow
  28. #define MATRIX_ROW_PINS { B1, B3, F1, F6, F7 }
  29. #define MATRIX_COL_PINS { B0, D5, B2, F5, D3, D2, C7, C6, B6, B5, B4, D7, D6, D4 }
  30. #define UNUSED_PINS
  31. // COL2ROW or ROW2COL
  32. #define DIODE_DIRECTION COL2ROW
  33. // Set 0 if debouncing isn't needed
  34. #define DEBOUNCE 5
  35. // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
  36. #define LOCKING_SUPPORT_ENABLE
  37. // Locking resynchronize hack
  38. #define LOCKING_RESYNC_ENABLE
  39. //RGB Underglow defines
  40. #define RGB_DI_PIN F0
  41. #define WS2812_LED_TOTAL 20
  42. //RGB Matrix defines
  43. #define DRIVER_ADDR_1 0x74
  44. #define DRIVER_ADDR_2 0x76
  45. #define DRIVER_COUNT 2
  46. #define DRIVER_1_LED_TOTAL 32
  47. #define DRIVER_2_LED_TOTAL 32
  48. #define ISSI_DRIVER_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
  49. #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + WS2812_LED_TOTAL)
  50. #define RGB_MATRIX_STARTUP_VAL 80
  51. #define RGB_MATRIX_KEYPRESSES
  52. // enable/disable LEDs based on layout
  53. // switch between split backspace (1) or normal backspace(0)
  54. #define RGB_BACKLIGHT_USE_SPLIT_BACKSPACE 1
  55. // switch between Tsangan (1) or Arrows Bottom Row (0)
  56. #define RGB_BACKLIGHT_USE_7U_SPACEBAR 0
  57. // switch between standard split rshift (0) or arrows r shift (1)
  58. // .------------------. .-------------------.
  59. // | ? | Shift | Fn | vs | Shift | Up | Fn |
  60. // `------------------' `-------------------'
  61. #define RGB_BACKLIGHT_USE_SPLIT_RIGHT_SHIFT 1