config.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. #define DESCRIPTION "An RGB, split, ortho-esque keyboard"
  23. /* ws2812 RGB LED */
  24. #define RGB_DI_PIN B7
  25. #define BACKLIGHT_LEDS 124
  26. #ifdef FULLHAND_ENABLE
  27. #define FULLHAND_LEDS 24
  28. #else
  29. #define FULLHAND_LEDS 0
  30. #endif
  31. // Underglow / DIY Tent Glow are parallel to the top row leds, no separate define
  32. #ifdef LED_MIRRORED
  33. #define RGBLED_NUM ((BACKLIGHT_LEDS + FULLHAND_LEDS) / 2)
  34. #else
  35. #define RGBLED_NUM (BACKLIGHT_LEDS + FULLHAND_LEDS)
  36. #endif
  37. #define DRIVER_LED_TOTAL RGBLED_NUM
  38. #define RGB_MATRIX_CENTER { 112, 37 }
  39. // Encoder support
  40. #ifndef EXTRA_ENCODERS_ENABLE
  41. #define ENCODERS_PAD_A { D2 }
  42. #define ENCODERS_PAD_B { D6 }
  43. #else
  44. #ifdef OLED_DRIVER_ENABLE
  45. #error Extra encoders cannot be enabled at the same time as the OLED Driver as they use the same pins.
  46. #endif
  47. #define ENCODERS_PAD_A { D2, D1, B0 }
  48. #define ENCODERS_PAD_B { D6, B1, D0 }
  49. #endif