2 Copyright 2018 Go Takigawa <gotakigawa@gmail.com>
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.
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.
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/>.
20 #include "config_common.h"
22 /* USB Device descriptor parameter */
23 #define VENDOR_ID 0xFEED
24 #define PRODUCT_ID 0x0000
25 #define DEVICE_VER 0x0001
26 #define MANUFACTURER GoTakigawa
27 #define PRODUCT NEWGAME40
28 #define DESCRIPTION 4x10key keyboard
32 #define MATRIX_COLS 10
35 #define MATRIX_ROW_PINS { F7, B1, B3, B2 }
36 #define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B4, B5 }
41 #define RGBLIGHT_ANIMATIONS
42 #define RGBLED_NUM 25 // Number of LEDs
43 #define RGBLIGHT_HUE_STEP 10
44 #define RGBLIGHT_SAT_STEP 17
46 #ifndef IOS_DEVICE_ENABLE
48 #define RGBLIGHT_LIMIT_VAL 255
50 #define RGBLIGHT_LIMIT_VAL 130
52 #define RGBLIGHT_VAL_STEP 17
55 #define RGBLIGHT_LIMIT_VAL 90
57 #define RGBLIGHT_LIMIT_VAL 45
59 #define RGBLIGHT_VAL_STEP 4
61 #define RGBLIGHT_HUE_STEP 10
62 #define RGBLIGHT_SAT_STEP 17
64 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
65 #define USB_MAX_POWER_CONSUMPTION 400
67 // fix iPhone and iPad power adapter issue
68 // iOS device need lessthan 100
69 #define USB_MAX_POWER_CONSUMPTION 100
71 /* COL2ROW or ROW2COL */
72 #define DIODE_DIRECTION COL2ROW
74 #define TAPPING_TERM 200