]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/staryu/config.h
Refactor staryu to current standards and enable support for backlight keycodes (...
[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 1
31 #define MATRIX_COLS 5
32
33 /* key matrix pins */
34 #define MATRIX_ROW_PINS { NO_PIN }
35 #define MATRIX_COL_PINS { D0, D1, D2, D3, D4 }
36 #define UNUSED_PINS
37
38 /* COL2ROW or ROW2COL */
39 #define DIODE_DIRECTION COL2ROW
40
41 #define RGB_DI_PIN C6
42 #define RGBLED_NUM 1     // Number of LEDs
43 #define RGBLIGHT_ANIMATIONS
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 #define BACKLIGHT_LEVELS 1 // either on/off
65 #define RGBLIGHT_LIMIT_VAL 200
66
67 /* Set 0 if debouncing isn't needed */
68 #define DEBOUNCING_DELAY 5