logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

post_config.h (1498B)


  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
  4. Copyright 2015 ZSA Technology Labs Inc (@zsa)
  5. Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  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. #if !defined(ERGODOX_LED_15) && !defined(ERGODOX_LED_30)
  19. // if no value is defined, assume previous behavior
  20. // # define ERGODOX_LED_15
  21. // # define ERGODOX_LED_30
  22. # define ERGODOX_LED_15_MIRROR
  23. #endif
  24. #if (defined(ERGODOX_LED_30) + defined(ERGODOX_LED_15) + defined(ERGODOX_LED_15_MIRROR)) != 1
  25. # error "You must only define one of the ERGODOX_LED options."
  26. #endif
  27. #ifdef ERGODOX_LED_30
  28. // If using 30 LEDs, then define that many
  29. # define WS2812_LED_COUNT 30
  30. # define RGBLIGHT_LED_COUNT 30 // Number of LEDs
  31. #else
  32. // If not, then only define 15
  33. # define WS2812_LED_COUNT 15
  34. # define RGBLIGHT_LED_COUNT 15 // Number of LEDs
  35. #endif