logo

qmk_firmware

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

config.h (1865B)


  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 Jack Humbert
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 2 of the License, or
  7. (at your option) any later version.
  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. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #pragma once
  16. // Underglow / DIY Tent Glow are parallel to the top row leds, no separate define
  17. // Full Hand case adds 24 LEDs, Star Fighter case adds 38 LEDs
  18. // For mirrored LED control (each MCU controls half the LEDs), total LED counts are divided in half
  19. #ifdef LED_MIRRORED
  20. #ifdef FULLHAND_ENABLE
  21. #define FULLHAND_LEDS 24
  22. #define RGBLIGHT_LED_COUNT 74
  23. #elif SF_ENABLE
  24. #define FULLHAND_LEDS 38
  25. #define RGBLIGHT_LED_COUNT 81
  26. #else
  27. #define FULLHAND_LEDS 0
  28. #define RGBLIGHT_LED_COUNT 62
  29. #endif
  30. #else
  31. #ifdef FULLHAND_ENABLE
  32. #define FULLHAND_LEDS 24
  33. #define RGBLIGHT_LED_COUNT 148
  34. #elif SF_ENABLE
  35. #define FULLHAND_LEDS 38
  36. #define RGBLIGHT_LED_COUNT 162
  37. #else
  38. #define FULLHAND_LEDS 0
  39. #define RGBLIGHT_LED_COUNT 124
  40. #endif
  41. #endif
  42. #define RGB_MATRIX_LED_COUNT RGBLIGHT_LED_COUNT
  43. // Encoder support
  44. #ifndef EXTRA_ENCODERS_ENABLE
  45. #define ENCODER_A_PINS { D2 }
  46. #define ENCODER_B_PINS { D6 }
  47. #else
  48. #ifdef OLED_ENABLE
  49. #error Extra encoders cannot be enabled at the same time as the OLED Driver as they use the same pins.
  50. #endif
  51. #define ENCODER_A_PINS { D2, D1, B0 }
  52. #define ENCODER_B_PINS { D6, B1, D0 }
  53. #endif