]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/staryu/config.h
[Keyboard] Snagpad Configurator bugfix and readme refactor (#6381)
[qmk_firmware.git] / keyboards / staryu / config.h
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 #pragma once
18
19 #include "config_common.h"
20
21 /* USB Device descriptor parameter */
22 #define VENDOR_ID       0x1209
23 #define PRODUCT_ID      0x2328
24 #define DEVICE_VER      0x0205
25 #define MANUFACTURER    K.T.E.C.
26 #define PRODUCT         Staryu
27 #define DESCRIPTION     5-key macropad
28
29 /* key matrix size */
30 #define MATRIX_ROWS 2
31 #define MATRIX_COLS 3
32
33 /* key matrix pins */
34 #define DIRECT_PINS { \
35     { NO_PIN, D0,     D1 }, \
36     { D4,     D3,     D2 }, \
37 }
38 #define UNUSED_PINS
39
40 #define RGB_DI_PIN C6
41 #define RGBLED_NUM 1     // Number of LEDs
42 #define RGBLIGHT_ANIMATIONS
43 #define RGBLIGHT_LIMIT_VAL 200
44 // #ifdef RGB_DI_PIN
45 //   #define RGBLIGHT_HUE_STEP 8
46 //   #define RGBLIGHT_SAT_STEP 8
47 //   #define RGBLIGHT_VAL_STEP 8
48 //   #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
49 //   #define RGBLIGHT_SLEEP  /* If defined, the RGB lighting will be switched off when the host goes to sleep */
50 // /*== all animations enable ==*/
51 //   #define RGBLIGHT_ANIMATIONS
52 // /*== or choose animations ==*/
53 //   #define RGBLIGHT_EFFECT_BREATHING
54 //   #define RGBLIGHT_EFFECT_RAINBOW_MOOD
55 //   #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
56 //   #define RGBLIGHT_EFFECT_SNAKE
57 //   #define RGBLIGHT_EFFECT_KNIGHT
58 //   #define RGBLIGHT_EFFECT_CHRISTMAS
59 //   #define RGBLIGHT_EFFECT_STATIC_GRADIENT
60 //   #define RGBLIGHT_EFFECT_RGB_TEST
61 //   #define RGBLIGHT_EFFECT_ALTERNATING
62 // #endif
63
64 #undef BACKLIGHT_PIN
65 #define BACKLIGHT_PINS { C2, C7, D5, D6, B0 }
66 #define BACKLIGHT_LED_COUNT 5
67 #define BACKLIGHT_LEVELS 10
68 #define BACKLIGHT_ON_STATE 1
69
70 /* Set 0 if debouncing isn't needed */
71 #define DEBOUNCE 5
72
73 /* Bootmagic Lite key configuration */
74 #define BOOTMAGIC_LITE_ROW 0
75 #define BOOTMAGIC_LITE_COLUMN 1