logo

qmk_firmware

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

config.h (2925B)


  1. /*
  2. Copyright 2021 Terry Mathews
  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. #define IS31FL3741_I2C_ADDRESS_1 IS31FL3741_I2C_ADDRESS_GND
  16. #ifndef RGB_MATRIX_ENABLE
  17. // WT_RGB IS31FL3741 driver code
  18. # define IS31FL3741_LED_COUNT 98
  19. # define RGB_BACKLIGHT_ENABLED 1
  20. // This conditionally compiles the backlight code for Portico75 specifics
  21. # define RGB_BACKLIGHT_PORTICO75
  22. // disable backlight when USB suspended (PC sleep/hibernate/shutdown)
  23. # define RGB_BACKLIGHT_DISABLE_WHEN_USB_SUSPENDED 1
  24. // disable backlight after timeout in minutes, 0 = no timeout
  25. # define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0
  26. // the default brightness
  27. # define RGB_BACKLIGHT_BRIGHTNESS 255
  28. // the default effect (RGB test)
  29. # define RGB_BACKLIGHT_EFFECT 255
  30. // the default effect speed (0-3)
  31. # define RGB_BACKLIGHT_EFFECT_SPEED 0
  32. // the default color1 and color2
  33. # define RGB_BACKLIGHT_COLOR_1 \
  34. { .h = 0, .s = 255 }
  35. # define RGB_BACKLIGHT_COLOR_2 \
  36. { .h = 127, .s = 255 }
  37. # define RGB_BACKLIGHT_USE_SPLIT_BACKSPACE 0
  38. # define RGB_BACKLIGHT_USE_SPLIT_LEFT_SHIFT 0
  39. # define RGB_BACKLIGHT_USE_SPLIT_RIGHT_SHIFT 0
  40. # define RGB_BACKLIGHT_USE_7U_SPACEBAR 0
  41. # define RGB_BACKLIGHT_USE_ISO_ENTER 0
  42. # define RGB_BACKLIGHT_DISABLE_HHKB_BLOCKER_LEDS 0
  43. # define RGB_BACKLIGHT_CAPS_LOCK_INDICATOR \
  44. { .color = {.h = 0, .s = 0}, .index = 255 }
  45. # define RGB_BACKLIGHT_LAYER_1_INDICATOR \
  46. { .color = {.h = 0, .s = 0}, .index = 255 }
  47. # define RGB_BACKLIGHT_LAYER_2_INDICATOR \
  48. { .color = {.h = 0, .s = 0}, .index = 255 }
  49. # define RGB_BACKLIGHT_LAYER_3_INDICATOR \
  50. { .color = {.h = 0, .s = 0}, .index = 255 }
  51. // These define which keys in the matrix are alphas/mods
  52. // Used for backlight effects so colors are different for
  53. // alphas vs. mods
  54. // Each value is for a row, bit 0 is column 0
  55. // Alpha=0 Mod=1
  56. # define RGB_BACKLIGHT_ALPHAS_MODS_ROW_0 0b0110000000000001
  57. # define RGB_BACKLIGHT_ALPHAS_MODS_ROW_1 0b0110000000000001
  58. # define RGB_BACKLIGHT_ALPHAS_MODS_ROW_2 0b0111000000000001
  59. # define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0111100000000001
  60. # define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b1111111111111111
  61. // Backlight config starts after VIA's EEPROM usage,
  62. // dynamic keymaps start after this.
  63. # define VIA_EEPROM_CUSTOM_CONFIG_SIZE 31
  64. #endif