config.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. /* USB Device descriptor parameter */
  17. #define VENDOR_ID 0xFEED
  18. #define PRODUCT_ID 0x3060
  19. #define DEVICE_VER 0x0002
  20. #define MANUFACTURER RGBKB
  21. #define PRODUCT Sol
  22. /* ws2812 RGB LED */
  23. #define RGB_DI_PIN B7
  24. #define BACKLIGHT_LEDS 124
  25. #ifdef FULLHAND_ENABLE
  26. #define FULLHAND_LEDS 24
  27. #elif SF_ENABLE
  28. #define FULLHAND_LEDS 38
  29. #else
  30. #define FULLHAND_LEDS 0
  31. #endif
  32. // Underglow / DIY Tent Glow are parallel to the top row leds, no separate define
  33. #ifdef LED_MIRRORED
  34. #define RGBLED_NUM ((BACKLIGHT_LEDS + FULLHAND_LEDS) / 2)
  35. #else
  36. #define RGBLED_NUM (BACKLIGHT_LEDS + FULLHAND_LEDS)
  37. #endif
  38. #define DRIVER_LED_TOTAL RGBLED_NUM
  39. #define RGB_MATRIX_CENTER { 112, 37 }
  40. // Encoder support
  41. #ifndef EXTRA_ENCODERS_ENABLE
  42. #define ENCODERS_PAD_A { D2 }
  43. #define ENCODERS_PAD_B { D6 }
  44. #else
  45. #ifdef OLED_DRIVER_ENABLE
  46. #error Extra encoders cannot be enabled at the same time as the OLED Driver as they use the same pins.
  47. #endif
  48. #define ENCODERS_PAD_A { D2, D1, B0 }
  49. #define ENCODERS_PAD_B { D6, B1, D0 }
  50. #endif