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.

105 lines
3.5 KiB

  1. /* Copyright
  2. * 2021 solartempest
  3. * 2021 QMK
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. #include "config_common.h"
  20. // USB Device descriptor parameter
  21. #define VENDOR_ID 0xFC32
  22. #define PRODUCT_ID 0x1287
  23. #define DEVICE_VER 0x0002
  24. #define MANUFACTURER Keyhive
  25. #define PRODUCT Sofle // VIA version for this PCB is incorrect for the bottom row
  26. // Key matrix size
  27. // Rows are doubled-up. Added extra column for rotary encoder VIA mapping.
  28. #define MATRIX_ROWS 10
  29. #define MATRIX_COLS 6
  30. // wiring of each half
  31. #define MATRIX_ROW_PINS \
  32. { C6, D7, E6, B4, B5 }
  33. #define MATRIX_COL_PINS \
  34. { B6, B2, B3, B1, F7, F6 }
  35. #define MATRIX_ROW_PINS_RIGHT \
  36. { C6, D7, E6, B4, B5 }
  37. #define MATRIX_COL_PINS_RIGHT \
  38. { F6, F7, B1, B3, B2, B6 }
  39. #define DIODE_DIRECTION COL2ROW
  40. #define DEBOUNCE 5
  41. // Encoder support
  42. #define ENCODERS_PAD_A \
  43. { F5 }
  44. #define ENCODERS_PAD_B \
  45. { F4 }
  46. #define ENCODERS_PAD_A_RIGHT \
  47. { F4 }
  48. #define ENCODERS_PAD_B_RIGHT \
  49. { F5 }
  50. #define ENCODER_RESOLUTIONS \
  51. { 4, 2 } // Left encoder seems to have double-output issue but right does not.
  52. #define TAP_CODE_DELAY 10
  53. // Communication between sides
  54. #define SOFT_SERIAL_PIN D2
  55. // OLED settings
  56. #define OLED_TIMEOUT 80000
  57. #define OLED_BRIGHTNESS 90
  58. #define SPLIT_WPM_ENABLE
  59. #define SPLIT_OLED_ENABLE
  60. #define SPLIT_TRANSPORT_MIRROR
  61. // Add RGB underglow
  62. #define RGB_DI_PIN D3
  63. #define RGBLED_NUM 74
  64. #define RGBLED_SPLIT \
  65. { 37, 37 }
  66. #define RGBLIGHT_LIMIT_VAL 160 // Power draw may exceed 0.6A at max brightness with white colour.
  67. #define RGBLIGHT_LAYERS
  68. #define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
  69. #define RGBLIGHT_SLEEP
  70. #define DRIVER_LED_TOTAL RGBLED_NUM
  71. #define RGB_MATRIX_SPLIT RGBLED_SPLIT
  72. #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  73. #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  74. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  75. #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  76. // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  77. // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  78. #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  79. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  80. // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
  81. // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
  82. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
  83. #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT
  84. #define RGB_MATRIX_HUE_STEP 8
  85. #define RGB_MATRIX_SAT_STEP 8
  86. #define RGB_MATRIX_VAL_STEP 8
  87. #define RGB_MATRIX_SPD_STEP 10