You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  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 RGBLED_NUM 30 // Number of LEDs
  30. #else
  31. // If not, then only define 15
  32. # define RGBLED_NUM 15 // Number of LEDs
  33. #endif