]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/newgame40/config.h
[Keyboard] fixed pins for numpad_5x4 layout (#6311)
[qmk_firmware.git] / keyboards / newgame40 / config.h
1 /*
2 Copyright 2018 Go Takigawa <gotakigawa@gmail.com>
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
18 #pragma once
19
20 #include "config_common.h"
21
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
29
30 /* key matrix size */
31 #define MATRIX_ROWS 4
32 #define MATRIX_COLS 10
33
34 /* pin-out */
35 #define MATRIX_ROW_PINS { F7, B1, B3, B2 }
36 #define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B4, B5 }
37 #define UNUSED_PINS
38
39 /* ws2812 RGB LED */
40 #define RGB_DI_PIN F6
41 #define RGBLIGHT_ANIMATIONS
42 #define RGBLED_NUM 25    // Number of LEDs
43 #define RGBLIGHT_HUE_STEP 10
44 #define RGBLIGHT_SAT_STEP 17
45
46 #ifndef IOS_DEVICE_ENABLE
47   #if RGBLED_NUM <= 6
48     #define RGBLIGHT_LIMIT_VAL 255
49   #else
50     #define RGBLIGHT_LIMIT_VAL 130
51   #endif
52   #define RGBLIGHT_VAL_STEP 17
53 #else
54   #if RGBLED_NUM <= 6
55     #define RGBLIGHT_LIMIT_VAL 90
56   #else
57     #define RGBLIGHT_LIMIT_VAL 45
58   #endif
59   #define RGBLIGHT_VAL_STEP 4
60 #endif
61 #define RGBLIGHT_HUE_STEP 10
62 #define RGBLIGHT_SAT_STEP 17
63
64 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
65   #define USB_MAX_POWER_CONSUMPTION 400
66 #else
67   // fix iPhone and iPad power adapter issue
68   // iOS device need lessthan 100
69   #define USB_MAX_POWER_CONSUMPTION 100
70 #endif
71 /* COL2ROW or ROW2COL */
72 #define DIODE_DIRECTION COL2ROW
73
74 #define TAPPING_TERM 200
75