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 7 This program is free software: you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation, either version 2 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 #pragma once 22 23 #if !defined(ERGODOX_LED_15) && !defined(ERGODOX_LED_30) 24 // if no value is defined, assume previous behavior 25 // # define ERGODOX_LED_15 26 // # define ERGODOX_LED_30 27 # define ERGODOX_LED_15_MIRROR 28 #endif 29 30 #if (defined(ERGODOX_LED_30) + defined(ERGODOX_LED_15) + defined(ERGODOX_LED_15_MIRROR)) != 1 31 # error "You must only define one of the ERGODOX_LED options." 32 #endif 33 34 #ifdef ERGODOX_LED_30 35 // If using 30 LEDs, then define that many 36 # define WS2812_LED_COUNT 30 37 # define RGBLIGHT_LED_COUNT 30 // Number of LEDs 38 #else 39 // If not, then only define 15 40 # define WS2812_LED_COUNT 15 41 # define RGBLIGHT_LED_COUNT 15 // Number of LEDs 42 #endif