config.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. #elif SF_ENABLE
  29. #define FULLHAND_LEDS 38
  30. #else
  31. #define FULLHAND_LEDS 0
  32. #endif
  33. // Underglow / DIY Tent Glow are parallel to the top row leds, no separate define
  34. #ifdef LED_MIRRORED
  35. #define RGBLED_NUM ((BACKLIGHT_LEDS + FULLHAND_LEDS) / 2)
  36. #else
  37. #define RGBLED_NUM (BACKLIGHT_LEDS + FULLHAND_LEDS)
  38. #endif
  39. #define DRIVER_LED_TOTAL RGBLED_NUM
  40. #define RGB_MATRIX_CENTER { 112, 37 }
  41. // Encoder support
  42. #ifndef EXTRA_ENCODERS_ENABLE
  43. #define ENCODERS_PAD_A { D2 }
  44. #define ENCODERS_PAD_B { D6 }
  45. #else
  46. #ifdef OLED_DRIVER_ENABLE
  47. #error Extra encoders cannot be enabled at the same time as the OLED Driver as they use the same pins.
  48. #endif
  49. #define ENCODERS_PAD_A { D2, D1, B0 }
  50. #define ENCODERS_PAD_B { D6, B1, D0 }
  51. #endif