logo

qmk_firmware

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

config.h (2239B)


  1. /*
  2. Copyright 2022 Moritz Plattner
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. /* i2C Config */
  16. #define I2C_DRIVER I2CD1
  17. #define I2C1_SCL_PIN B6
  18. #define I2C1_SDA_PIN B7
  19. #define I2C1_SCL_PAL_MODE 4
  20. #define I2C1_SDA_PAL_MODE 4
  21. #define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_16_9
  22. #define I2C1_CLOCK_SPEED 400000
  23. #define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND
  24. #define IS31FL3733_I2C_ADDRESS_2 IS31FL3733_I2C_ADDRESS_GND_VCC
  25. #define IS31FL3733_SDB_PIN B9
  26. #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CUSTOM_SINGLE_COLOR_RAINDROPS
  27. #define ENABLE_RGB_MATRIX_CUSTOM_SINGLE_COLOR_RAINDROPS // 0 Single color raindrops, random keys lighting up at randomized intensity
  28. #define ENABLE_RGB_MATRIX_CUSTOM_STATIC_GAME_MODE // - Game mode sets the entire matrix (static) once, then stops LED refreshes
  29. /* Define indicator LED indices, used for lighting effects */
  30. #define W_LED_INDEX 33
  31. #define A_LED_INDEX 47
  32. #define S_LED_INDEX 48
  33. #define D_LED_INDEX 49
  34. #define CAPS_LED_INDEX 46
  35. #define WIN_LED_INDEX 76
  36. #define ANV_A_LED_INDEX 15
  37. #define ANV_N_LED_INDEX 30
  38. #define ANV_V_LED_INDEX 45
  39. #define ANV_I_LED_INDEX 59
  40. #define ANV_L_LED_INDEX 74
  41. #define NUM_1_LED_INDEX 17
  42. #define NUM_2_LED_INDEX 18
  43. #define NUM_3_LED_INDEX 19
  44. #define NUM_4_LED_INDEX 20
  45. #define NUM_5_LED_INDEX 21
  46. #define M_LED_INDEX 68
  47. #define K_LED_INDEX 54
  48. #define O_LED_INDEX 40
  49. #define NUM_0_LED_INDEX 26
  50. #define P_LED_INDEX 41
  51. #define SCLN_LED_INDEX 56
  52. #define SLSH_LED_INDEX 71
  53. /* Since the typing heatmap is broken on duplex matrix boards, force it to "slim" mode */
  54. #ifdef ENABLE_RGB_MATRIX_TYPING_HEATMAP
  55. #define RGB_MATRIX_TYPING_HEATMAP_SLIM
  56. #endif