config.h (1865B)
1 /* 2 Copyright 2012 Jun Wako <wakojun@gmail.com> 3 Copyright 2015 Jack Humbert 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 2 of the License, or 8 (at your option) any later version. 9 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 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #pragma once 20 21 // Underglow / DIY Tent Glow are parallel to the top row leds, no separate define 22 // Full Hand case adds 24 LEDs, Star Fighter case adds 38 LEDs 23 // For mirrored LED control (each MCU controls half the LEDs), total LED counts are divided in half 24 #ifdef LED_MIRRORED 25 #ifdef FULLHAND_ENABLE 26 #define FULLHAND_LEDS 24 27 #define RGBLIGHT_LED_COUNT 74 28 #elif SF_ENABLE 29 #define FULLHAND_LEDS 38 30 #define RGBLIGHT_LED_COUNT 81 31 #else 32 #define FULLHAND_LEDS 0 33 #define RGBLIGHT_LED_COUNT 62 34 #endif 35 #else 36 #ifdef FULLHAND_ENABLE 37 #define FULLHAND_LEDS 24 38 #define RGBLIGHT_LED_COUNT 148 39 #elif SF_ENABLE 40 #define FULLHAND_LEDS 38 41 #define RGBLIGHT_LED_COUNT 162 42 #else 43 #define FULLHAND_LEDS 0 44 #define RGBLIGHT_LED_COUNT 124 45 #endif 46 #endif 47 48 #define RGB_MATRIX_LED_COUNT RGBLIGHT_LED_COUNT 49 50 // Encoder support 51 #ifndef EXTRA_ENCODERS_ENABLE 52 #define ENCODER_A_PINS { D2 } 53 #define ENCODER_B_PINS { D6 } 54 #else 55 #ifdef OLED_ENABLE 56 #error Extra encoders cannot be enabled at the same time as the OLED Driver as they use the same pins. 57 #endif 58 #define ENCODER_A_PINS { D2, D1, B0 } 59 #define ENCODER_B_PINS { D6, B1, D0 } 60 #endif