diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/7skb/rev1 |
Diffstat (limited to 'keyboards/7skb/rev1')
-rw-r--r-- | keyboards/7skb/rev1/config.h | 83 | ||||
-rw-r--r-- | keyboards/7skb/rev1/rev1.c | 1 | ||||
-rw-r--r-- | keyboards/7skb/rev1/rev1.h | 42 | ||||
-rw-r--r-- | keyboards/7skb/rev1/rules.mk | 0 |
4 files changed, 126 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 | /* | ||
2 | Copyright 2012 Jun Wako <[email protected]> | ||
3 | Copyright 2015 Jack Humbert | ||
4 | |||
5 | This program is free software: you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation, either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along 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 | ||
diff --git a/keyboards/7skb/rev1/rev1.c b/keyboards/7skb/rev1/rev1.c new file mode 100644 index 000000000..520a869e5 --- /dev/null +++ b/keyboards/7skb/rev1/rev1.c | |||
@@ -0,0 +1 @@ | |||
#include "rev1.h" | |||
diff --git a/keyboards/7skb/rev1/rev1.h b/keyboards/7skb/rev1/rev1.h new file mode 100644 index 000000000..8ab845240 --- /dev/null +++ b/keyboards/7skb/rev1/rev1.h | |||
@@ -0,0 +1,42 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "7skb.h" | ||
4 | |||
5 | #include "quantum.h" | ||
6 | |||
7 | ////////////////////////////////////////////////////////////////////////////// | ||
8 | // When only use 7skb. | ||
9 | ////////////////////////////////////////////////////////////////////////////// | ||
10 | /* | ||
11 | * ,------------------------------------ ------------------------------------------------------. | ||
12 | * | L00 | L01 | L02 | L03 | L04 | L05 | | R00 | R01 | R02 | R03 | R04 | R05 | R06 | R07 | R17 | | ||
13 | * |---------------------------------------------------------------------------------------------+ | ||
14 | * | L10 | L11 | L12 | L13 | L14 | L15 | | R10 | R11 | R12 | R13 | R14 | R15 | R16 | R27 | | ||
15 | * |---------------------------------------- ---------------------------------------------------+ | ||
16 | * | L20 | L21 | L22 | L23 | L24 | L25 | | R20 | R21 | R22 | R23 | R24 | R25 | R26 | | ||
17 | * |---------------------------------------------------------------------------------------------+ | ||
18 | * | L30 | L31 | L32 | L33 | L34 | L35 | | R30 | R31 | R32 | R33 | R34 | R35 | R36 | | ||
19 | * |------------------------------------------- -----------------------------------------------' | ||
20 | * | L41 | L42 | L43 | L44 | | R40 | R41 | R43 | R44 | | ||
21 | * |------------------------------ ---------------------------------' | ||
22 | */ | ||
23 | |||
24 | #define LAYOUT( \ | ||
25 | L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, R06, R07, R17, \ | ||
26 | L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, R27, \ | ||
27 | L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, R26, \ | ||
28 | L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, R36, \ | ||
29 | L41, L42, L43, L44, R40, R41, R43, R44 \ | ||
30 | ) \ | ||
31 | { \ | ||
32 | { L00, L01, L02, L03, L04, L05, KC_NO, KC_NO }, \ | ||
33 | { L10, L11, L12, L13, L14, L15, KC_NO, KC_NO }, \ | ||
34 | { L20, L21, L22, L23, L24, L25, KC_NO, KC_NO }, \ | ||
35 | { L30, L31, L32, L33, L34, L35, KC_NO, KC_NO }, \ | ||
36 | {KC_NO, L41, L42, L43, L44, KC_NO, KC_NO, KC_NO }, \ | ||
37 | { R00, R01, R02, R03, R04, R05, R06, R07 }, \ | ||
38 | { R10, R11, R12, R13, R14, R15, R16, R17 }, \ | ||
39 | { R20, R21, R22, R23, R24, R25, R26, R27 }, \ | ||
40 | { R30, R31, R32, R33, R34, R35, R36, KC_NO }, \ | ||
41 | { R40, R41, KC_NO, R43, R44, KC_NO, KC_NO, KC_NO } \ | ||
42 | } | ||
diff --git a/keyboards/7skb/rev1/rules.mk b/keyboards/7skb/rev1/rules.mk new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/keyboards/7skb/rev1/rules.mk | |||