diff options
Diffstat (limited to 'keyboards/rgbkb/sol/rev2/config.h')
| -rw-r--r-- | keyboards/rgbkb/sol/rev2/config.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/keyboards/rgbkb/sol/rev2/config.h b/keyboards/rgbkb/sol/rev2/config.h new file mode 100644 index 000000000..af74b7e46 --- /dev/null +++ b/keyboards/rgbkb/sol/rev2/config.h | |||
| @@ -0,0 +1,61 @@ | |||
| 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 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0xFEED | ||
| 23 | #define PRODUCT_ID 0x3060 | ||
| 24 | #define DEVICE_VER 0x0002 | ||
| 25 | #define MANUFACTURER RGBKB | ||
| 26 | #define PRODUCT Sol | ||
| 27 | #define DESCRIPTION "An RGB, split, ortho-esque keyboard" | ||
| 28 | |||
| 29 | /* ws2812 RGB LED */ | ||
| 30 | #define RGB_DI_PIN B7 | ||
| 31 | |||
| 32 | #define BACKLIGHT_LEDS 124 | ||
| 33 | |||
| 34 | #ifdef FULLHAND_ENABLE | ||
| 35 | #define FULLHAND_LEDS 24 | ||
| 36 | #else | ||
| 37 | #define FULLHAND_LEDS 0 | ||
| 38 | #endif | ||
| 39 | |||
| 40 | // Underglow / DIY Tent Glow are parallel to the top row leds, no separate define | ||
| 41 | |||
| 42 | #ifdef LED_MIRRORED | ||
| 43 | #define RGBLED_NUM ((BACKLIGHT_LEDS + FULLHAND_LEDS) / 2) | ||
| 44 | #else | ||
| 45 | #define RGBLED_NUM (BACKLIGHT_LEDS + FULLHAND_LEDS) | ||
| 46 | #endif | ||
| 47 | #define DRIVER_LED_TOTAL RGBLED_NUM | ||
| 48 | |||
| 49 | #define RGB_MATRIX_CENTER { 112, 37 } | ||
| 50 | |||
| 51 | // Encoder support | ||
| 52 | #ifndef EXTRA_ENCODERS_ENABLE | ||
| 53 | #define ENCODERS_PAD_A { D2 } | ||
| 54 | #define ENCODERS_PAD_B { D6 } | ||
| 55 | #else | ||
| 56 | #ifdef OLED_DRIVER_ENABLE | ||
| 57 | #error Extra encoders cannot be enabled at the same time as the OLED Driver as they use the same pins. | ||
| 58 | #endif | ||
| 59 | #define ENCODERS_PAD_A { D2, D1, B0 } | ||
| 60 | #define ENCODERS_PAD_B { D6, B1, D0 } | ||
| 61 | #endif | ||
