config.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Copyright 2020 Josef Adamcik
  2. * Modification for VIA support and RGB underglow by Jens Bonk-Wiltfang
  3. *
  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. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. /* The way how "handedness" is decided (which half is which),
  19. see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness
  20. for more options.
  21. */
  22. #if defined(KEYBOARD_sofle_rev1)
  23. // Add RGB underglow and top facing lighting
  24. # define RGB_DI_PIN D3
  25. # define RGBLED_NUM 70
  26. # define RGBLED_SPLIT \
  27. { 36, 36 }
  28. # ifdef RGB_MATRIX_ENABLE
  29. # define RGB_MATRIX_LED_COUNT RGBLED_NUM
  30. # define RGB_MATRIX_SPLIT RGBLED_SPLIT
  31. # define SPLIT_TRANSPORT_MIRROR
  32. # else
  33. # define RGBLIGHT_EFFECT_BREATHING
  34. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  35. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  36. # define RGBLIGHT_EFFECT_SNAKE
  37. # define RGBLIGHT_EFFECT_KNIGHT
  38. # define RGBLIGHT_EFFECT_CHRISTMAS
  39. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  40. # define RGBLIGHT_EFFECT_RGB_TEST
  41. # define RGBLIGHT_EFFECT_ALTERNATING
  42. # define RGBLIGHT_EFFECT_TWINKLE
  43. # define RGBLIGHT_LIMIT_VAL 120
  44. # define RGBLIGHT_HUE_STEP 10
  45. # define RGBLIGHT_SAT_STEP 17
  46. # define RGBLIGHT_VAL_STEP 17
  47. # endif
  48. #endif