aboutsummaryrefslogtreecommitdiff
path: root/keyboards/7skb/rev1/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/7skb/rev1/config.h')
-rw-r--r--keyboards/7skb/rev1/config.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/keyboards/7skb/rev1/config.h b/keyboards/7skb/rev1/config.h
new file mode 100644
index 000000000..a74cd25c2
--- /dev/null
+++ b/keyboards/7skb/rev1/config.h
@@ -0,0 +1,83 @@
1/*
2Copyright 2012 Jun Wako <[email protected]>
3Copyright 2015 Jack Humbert
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x04D8
23#define PRODUCT_ID 0xEB5F
24#define DEVICE_VER 0x0007
25#define MANUFACTURER Salicylic_Acid
26#define PRODUCT 7skb
27
28/* key matrix size */
29#define MATRIX_ROWS 10
30#define MATRIX_COLS 8
31
32// wiring of each half
33#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
34#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B5 }
35
36#define DIODE_DIRECTION COL2ROW
37
38/* Set 0 if debouncing isn't needed */
39#define DEBOUNCE 5
40
41/* serial.c configuration for split keyboard */
42#define SOFT_SERIAL_PIN D2
43#define SPLIT_HAND_PIN B6
44
45/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
46#define LOCKING_SUPPORT_ENABLE
47/* Locking resynchronize hack */
48#define LOCKING_RESYNC_ENABLE
49
50/* ws2812 RGB LED */
51#define RGB_DI_PIN D3
52
53#ifndef RGBLED_NUM
54 #define RGBLED_NUM 12
55 #define RGBLIGHT_SPLIT
56 #define RGBLED_SPLIT { 6, 6 }
57#endif
58
59#define RGBLIGHT_ANIMATIONS
60
61#ifndef IOS_DEVICE_ENABLE
62 #define RGBLIGHT_LIMIT_VAL 180
63 #define RGBLIGHT_VAL_STEP 17
64#else
65 #define RGBLIGHT_LIMIT_VAL 50
66 #define RGBLIGHT_VAL_STEP 4
67#endif
68#define RGBLIGHT_HUE_STEP 10
69#define RGBLIGHT_SAT_STEP 17
70
71#if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
72// USB_MAX_POWER_CONSUMPTION value for naked48 keyboard
73// 120 RGBoff, OLEDoff
74// 120 OLED
75// 330 RGB 6
76// 300 RGB 32
77// 310 OLED & RGB 32
78 #define USB_MAX_POWER_CONSUMPTION 400
79#else
80 // fix iPhone and iPad power adapter issue
81 // iOS device need lessthan 100
82 #define USB_MAX_POWER_CONSUMPTION 100
83#endif