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.

92 lines
2.4 KiB

  1. /* Copyright 2020 Pylon
  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 3 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. #define VENDOR_ID 0xAC11
  19. #define PRODUCT_ID 0x4175
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER Pylon
  22. #define PRODUCT Boston
  23. /* key matrix size */
  24. #define MATRIX_ROWS 7
  25. #define MATRIX_COLS 19
  26. #define MATRIX_COL_PINS \
  27. { B10, B11, B12, B13, B14, B15, A8, A9, A10, A15, B3, B4, B7, B8, B9, C14, C15, F0, A3 }
  28. #define MATRIX_ROW_PINS \
  29. { B5, B6, A7, B0, B1, B2, A4 }
  30. #define DIODE_DIRECTION COL2ROW
  31. #define BACKLIGHT_PIN A6
  32. #define BACKLIGHT_PWM_DRIVER PWMD3
  33. #define BACKLIGHT_PWM_CHANNEL 1
  34. #define BACKLIGHT_PAL_MODE 1
  35. #define BACKLIGHT_LEVELS 6
  36. #define BACKLIGHT_BREATHING
  37. #define BREATHING_PERIOD 6
  38. /* define if matrix has ghost */
  39. //#define MATRIX_HAS_GHOST
  40. /* Set 0 if debouncing isn't needed */
  41. #define DEBOUNCE 5
  42. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  43. #define LOCKING_SUPPORT_ENABLE
  44. /* Locking resynchronize hack */
  45. #define LOCKING_RESYNC_ENABLE
  46. /* Define RGBLED */
  47. #define RGB_DI_PIN A5
  48. #define RGBLED_NUM 1
  49. #define RGBLIGHT_ANIMATIONS
  50. #define RGBLIGHT_LAYERS
  51. //The 3D-printed version of Boston uses APA106 LEDs, which are reversed
  52. #define WS2812_BYTE_ORDER WS2812_BYTE_ORDER_RGB
  53. /* Define encoder */
  54. #define ENCODERS_PAD_A \
  55. { C13 }
  56. #define ENCODERS_PAD_B \
  57. { F1 }
  58. #define ENCODER_RESOLUTION 2
  59. #define TAP_CODE_DELAY 15
  60. /* Lock LEDs */
  61. #define LED_NUM_LOCK_PIN A0
  62. #define LED_CAPS_LOCK_PIN A1
  63. #define LED_SCROLL_LOCK_PIN A2
  64. /*
  65. * Feature disable options
  66. * These options are also useful to firmware size reduction.
  67. */
  68. /* disable debug print */
  69. //#define NO_DEBUG
  70. /* disable print */
  71. //#define NO_PRINT
  72. /* disable action features */
  73. //#define NO_ACTION_LAYER
  74. //#define NO_ACTION_TAPPING
  75. //#define NO_ACTION_ONESHOT
  76. //#define NO_ACTION_MACRO
  77. //#define NO_ACTION_FUNCTION