diff options
author | Drashna Jael're <drashna@live.com> | 2021-08-17 22:33:17 -0700 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-08-17 22:33:17 -0700 |
commit | cf5e40c25139ff64ff246f1c6280e983ef75551c (patch) | |
tree | 8d55c3ec30fb612da6f81fd7eb3cce835d9a36fd | |
parent | ceb3ebda462390418b037669da8d631429bdd175 (diff) | |
parent | b51a187d774ec1b8e976d4f968ccc4448026b065 (diff) | |
download | qmk_firmware-cf5e40c25139ff64ff246f1c6280e983ef75551c.tar.gz qmk_firmware-cf5e40c25139ff64ff246f1c6280e983ef75551c.zip |
Merge remote-tracking branch 'origin/master' into develop
4 files changed, 29 insertions, 41 deletions
diff --git a/keyboards/handwired/stream_cheap/2x4/2x4.h b/keyboards/handwired/stream_cheap/2x4/2x4.h index 07856044f..37d37af72 100644 --- a/keyboards/handwired/stream_cheap/2x4/2x4.h +++ b/keyboards/handwired/stream_cheap/2x4/2x4.h | |||
@@ -3,8 +3,8 @@ | |||
3 | #include "quantum.h" | 3 | #include "quantum.h" |
4 | 4 | ||
5 | #define LAYOUT_ortho_2x4(\ | 5 | #define LAYOUT_ortho_2x4(\ |
6 | K00, K01, K02,K03, \ | 6 | K00, K01, K02, K03, \ |
7 | K04, K05, K06,K07 \ | 7 | K04, K05, K06, K07 \ |
8 | ) \ | 8 | ) \ |
9 | { \ | 9 | { \ |
10 | { K00,K01,K02,K03}, \ | 10 | { K00,K01,K02,K03}, \ |
diff --git a/keyboards/handwired/stream_cheap/2x4/config.h b/keyboards/handwired/stream_cheap/2x4/config.h index 708f4cc07..432f23c7d 100644 --- a/keyboards/handwired/stream_cheap/2x4/config.h +++ b/keyboards/handwired/stream_cheap/2x4/config.h | |||
@@ -3,18 +3,21 @@ | |||
3 | #include "config_common.h" | 3 | #include "config_common.h" |
4 | 4 | ||
5 | /* USB Device descriptor parameter */ | 5 | /* USB Device descriptor parameter */ |
6 | #define VENDOR_ID 0x7363 | 6 | #define VENDOR_ID 0x7363 // Stream Cheap |
7 | #define PRODUCT_ID 0x3032 | 7 | #define PRODUCT_ID 0x1214 |
8 | #define DEVICE_VER 0x0001 | 8 | #define DEVICE_VER 0x0001 |
9 | #define MANUFACTURER Kyle Hart | 9 | #define MANUFACTURER Stream Cheap |
10 | #define PRODUCT Stream Cheap 2x4 | 10 | #define PRODUCT 2x4 |
11 | 11 | ||
12 | /* key matrix size */ | 12 | /* key matrix size */ |
13 | #define MATRIX_ROWS 2 | 13 | #define MATRIX_ROWS 2 |
14 | #define MATRIX_COLS 4 | 14 | #define MATRIX_COLS 4 |
15 | 15 | ||
16 | /* define direct pins used */ | 16 | /* define direct pins used */ |
17 | #define DIRECT_PINS { { B5,D7,C6,D1}, { B4,E6,D4,D0} } | 17 | #define DIRECT_PINS \ |
18 | { \ | ||
19 | {D1, D0, D4, C6}, { D7, E6, B4, B5 } \ | ||
20 | } | ||
18 | 21 | ||
19 | /* Set 0 if debouncing isn't needed */ | 22 | /* Set 0 if debouncing isn't needed */ |
20 | #define DEBOUNCE 5 | 23 | #define DEBOUNCE 5 |
diff --git a/keyboards/handwired/stream_cheap/2x4/keymaps/via/keymap.c b/keyboards/handwired/stream_cheap/2x4/keymaps/via/keymap.c index 5bd92beb6..8824e2145 100644 --- a/keyboards/handwired/stream_cheap/2x4/keymaps/via/keymap.c +++ b/keyboards/handwired/stream_cheap/2x4/keymaps/via/keymap.c | |||
@@ -1,36 +1,21 @@ | |||
1 | /* | 1 | /* Copyright 2021 Matthias Liffers |
2 | Copyright 2021 Luigi311 | 2 | * |
3 | This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | (at your option) any later version. | 6 | * (at your option) any later version. |
7 | This program is distributed in the hope that it will be useful, | 7 | * |
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 | * This program is distributed in the hope that it will be useful, |
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | GNU General Public License for more details. | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | You should have received a copy of the GNU General Public License | 11 | * GNU General Public License for more details. |
12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 12 | * |
13 | */ | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
14 | 16 | ||
15 | #include QMK_KEYBOARD_H | 17 | #include QMK_KEYBOARD_H |
16 | 18 | ||
17 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 19 | enum layers { NORMAL_LAYER, SECOND_LAYER, THIRD_LAYER, FOURTH_LAYER }; |
18 | 20 | ||
19 | // Default layer | 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[NORMAL_LAYER] = LAYOUT_ortho_2x4(KC_A, KC_A, KC_A, TO(3), KC_A, KC_A, KC_A, TO(1)), [SECOND_LAYER] = LAYOUT_ortho_2x4(KC_B, KC_B, KC_B, TO(0), KC_B, KC_B, KC_B, TO(2)), [THIRD_LAYER] = LAYOUT_ortho_2x4(KC_C, KC_C, KC_C, TO(1), KC_C, KC_C, KC_C, TO(3)), [FOURTH_LAYER] = LAYOUT_ortho_2x4(KC_D, KC_D, KC_D, TO(2), KC_D, KC_D, KC_D, TO(0))}; |
20 | [0] = LAYOUT_ortho_2x4( | ||
21 | KC_F13, KC_F14, KC_F15, KC_F16, | ||
22 | KC_F17, KC_F18, KC_F19, KC_F20 | ||
23 | ), | ||
24 | [1] = LAYOUT_ortho_2x4( | ||
25 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
26 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
27 | ), | ||
28 | [2] = LAYOUT_ortho_2x4( | ||
29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
31 | ), | ||
32 | [3] = LAYOUT_ortho_2x4( | ||
33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
35 | ), | ||
36 | }; | ||
diff --git a/keyboards/handwired/stream_cheap/2x4/keymaps/via/rules.mk b/keyboards/handwired/stream_cheap/2x4/keymaps/via/rules.mk index 0dd05fa1d..1e5b99807 100644 --- a/keyboards/handwired/stream_cheap/2x4/keymaps/via/rules.mk +++ b/keyboards/handwired/stream_cheap/2x4/keymaps/via/rules.mk | |||
@@ -1 +1 @@ | |||
VIA_ENABLE = yes # Enable VIA | VIA_ENABLE = yes | ||