logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (1674B)


  1. /* Copyright 2023 ArthurCyy <https://github.com/ArthurCyy>
  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. // EEPROM i2c chip
  18. #define EEPROM_I2C_24LC256
  19. #define POWER_SWITCH_PIN B0
  20. /* 16 with dummy columns for shift registers */
  21. #define SHR_SERIES_NUM 2
  22. #define SHR_CLOCK_PIN A0
  23. #define SHR_DATA_PIN A1
  24. #define SHR_LATCH_PIN C15
  25. /* MIIIW Protocol Driver */
  26. #define MWPROTO_BITRATE 256000
  27. #define MWPROTO_DRIVER SD1
  28. #define MWPROTO_TX_PIN A9
  29. #define MWPROTO_TX_PAL_MODE 1
  30. #define MWPROTO_RX_PIN A10
  31. #define MWPROTO_RX_PAL_MODE 1
  32. #define MWPROTO_WAKEUP_PIN A15
  33. #define MWPROTO_STATUS_PIN C13
  34. /* RGB Matrix config */
  35. #define RGB_EN_PIN A8
  36. // PWM RGB Underglow Defines
  37. #define WS2812_BYTE_ORDER WS2812_BYTE_ORDER_GRB
  38. #define WS2812_TRST_US 200
  39. // I2C config
  40. #define I2C_DRIVER I2CD1
  41. #define I2C1_SCL_PIN B6
  42. #define I2C1_SDA_PIN B7
  43. #define I2C1_SCL_PAL_MODE 1
  44. #define I2C1_SDA_PAL_MODE 1
  45. #define I2C1_TIMINGR_PRESC 0x00U
  46. #define I2C1_TIMINGR_SCLDEL 0x03U
  47. #define I2C1_TIMINGR_SDADEL 0x01U
  48. #define I2C1_TIMINGR_SCLH 0x03U
  49. #define I2C1_TIMINGR_SCLL 0x09U