diff options
Diffstat (limited to 'keyboards/staryu/config.h')
| -rwxr-xr-x | keyboards/staryu/config.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/keyboards/staryu/config.h b/keyboards/staryu/config.h new file mode 100755 index 000000000..268fe991a --- /dev/null +++ b/keyboards/staryu/config.h | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2018 Cole Markham | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 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 | #ifndef CONFIG_H | ||
| 18 | #define CONFIG_H | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x1209 | ||
| 24 | #define PRODUCT_ID 0x2328 | ||
| 25 | #define DEVICE_VER 0x0205 | ||
| 26 | #define MANUFACTURER K.T.E.C. | ||
| 27 | #define PRODUCT Staryu | ||
| 28 | #define DESCRIPTION 5-key macropad | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 1 | ||
| 32 | #define MATRIX_COLS 5 | ||
| 33 | |||
| 34 | /* key matrix pins */ | ||
| 35 | #define MATRIX_ROW_PINS { } | ||
| 36 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D4 } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | // from light_ws2812_config @ | ||
| 40 | // https://github.com/kairyu/tmk_keyboard_custom/tree/master/keyboard/staryu | ||
| 41 | #define RGB_DI_PIN C6 | ||
| 42 | #define RGBLIGHT_ANIMATIONS | ||
| 43 | #define RGBLED_NUM 1 // Number of LEDs | ||
| 44 | |||
| 45 | /* COL2ROW or ROW2COL */ | ||
| 46 | #define DIODE_DIRECTION COL2ROW | ||
| 47 | |||
| 48 | /* Set 0 if debouncing isn't needed */ | ||
| 49 | #define DEBOUNCING_DELAY 5 | ||
| 50 | |||
| 51 | // TODO backlighting | ||
| 52 | #define BACKLIGHT_LEVELS 10 | ||
| 53 | // #define BACKLIGHT_PIN B7 | ||
| 54 | /* | ||
| 55 | Backlight: C2, C7, D5, D6, B0 | ||
| 56 | switch (index) { | ||
| 57 | case 0: | ||
| 58 | PORTC &= ~(1<<PC2); | ||
| 59 | break; | ||
| 60 | case 1: | ||
| 61 | PORTC &= ~(1<<PC7); | ||
| 62 | break; | ||
| 63 | case 2: | ||
| 64 | PORTD &= ~(1<<PD5); | ||
| 65 | break; | ||
| 66 | case 3: | ||
| 67 | PORTD &= ~(1<<PD6); | ||
| 68 | break; | ||
| 69 | case 4: | ||
| 70 | PORTB &= ~(1<<PB0); | ||
| 71 | break; | ||
| 72 | */ | ||
| 73 | |||
| 74 | #endif | ||
