config.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 0x0001
  20. #define MANUFACTURER RGBKB
  21. #define PRODUCT Sol
  22. /* ws2812 RGB LED */
  23. #define RGB_DI_PIN B3
  24. #ifdef LED_MIRRORED
  25. #define RGBLED_NUM 35
  26. #else
  27. #define RGBLED_NUM 70
  28. #endif
  29. #define DRIVER_LED_TOTAL RGBLED_NUM
  30. #define RGB_MATRIX_CENTER { 112, 35 }
  31. // Encoder support
  32. #define ENCODERS_PAD_A { D2 }
  33. #define ENCODERS_PAD_B { D6 }