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.

59 lines
2.0 KiB

  1. /* Copyright 2023 @ Keychron(https://www.keychron.com)
  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. // Connects each switch in the dip switch to the GPIO pin of the MCU
  18. #define DIP_SWITCH_PINS \
  19. { A8 }
  20. /* handedness */
  21. #define SPLIT_HAND_MATRIX_GRID A2, A15
  22. #define SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
  23. #define MATRIX_MASKED // actual mask is defined by `matrix_mask` in `q11.c`
  24. /* RGB Matrix Driver Configuration */
  25. #define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND
  26. /* Increase I2C speed to 1000 KHz */
  27. #define I2C1_TIMINGR_PRESC 0U
  28. #define I2C1_TIMINGR_SCLDEL 3U
  29. #define I2C1_TIMINGR_SDADEL 0U
  30. #define I2C1_TIMINGR_SCLH 15U
  31. #define I2C1_TIMINGR_SCLL 51U
  32. #define SNLED27351_CURRENT_TUNE \
  33. { 0x80, 0xFF, 0xFF, 0x80, 0xFF, 0xFF, 0x80, 0xFF, 0xFF, 0x80, 0xFF, 0xFF } // 300mA
  34. /* EEPROM Driver Configuration */
  35. #define WEAR_LEVELING_LOGICAL_SIZE 2048
  36. #define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
  37. /* Split Keyboard specific options. */
  38. #define SERIAL_USART_TX_PIN A9 // USART TX pin
  39. /* Encoder Configuration */
  40. #define ENCODER_DEFAULT_POS 0x3
  41. /* Disable RGB lighting when PC is in suspend */
  42. #define RGB_DISABLE_WHEN_USB_SUSPENDED
  43. // RGB Matrix Animation modes. Explicitly enabled
  44. // For full list of effects, see:
  45. // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
  46. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  47. #define RGB_MATRIX_KEYPRESSES