aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/stream_cheap/2x4/2x4.h4
-rw-r--r--keyboards/handwired/stream_cheap/2x4/config.h9
-rw-r--r--keyboards/handwired/stream_cheap/2x4/keymaps/via/keymap.c43
-rw-r--r--keyboards/handwired/stream_cheap/2x4/keymaps/via/rules.mk1
4 files changed, 50 insertions, 7 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 14b4d9e36..eb6fcbce1 100644
--- a/keyboards/handwired/stream_cheap/2x4/config.h
+++ b/keyboards/handwired/stream_cheap/2x4/config.h
@@ -3,19 +3,18 @@
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 0xFEED 6#define VENDOR_ID 0x7363 // Stream Cheap
7#define PRODUCT_ID 0x1214 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 { { D1,D0,D4,C6}, { D7,E6,B4,B5} }
18
19 18
20/* Set 0 if debouncing isn't needed */ 19/* Set 0 if debouncing isn't needed */
21#define DEBOUNCE 5 20#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
new file mode 100644
index 000000000..7f952a7bd
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x4/keymaps/via/keymap.c
@@ -0,0 +1,43 @@
1/* Copyright 2021 Matthias Liffers
2 *
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
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
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 */
16
17#include QMK_KEYBOARD_H
18
19enum layers {
20 NORMAL_LAYER,
21 SECOND_LAYER,
22 THIRD_LAYER,
23 FOURTH_LAYER
24};
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27 [NORMAL_LAYER] = LAYOUT_ortho_2x4(
28 KC_A, KC_A, KC_A, TO(3),
29 KC_A, KC_A, KC_A, TO(1)
30 ),
31 [SECOND_LAYER] = LAYOUT_ortho_2x4(
32 KC_B, KC_B, KC_B, TO(0),
33 KC_B, KC_B, KC_B, TO(2)
34 ),
35 [THIRD_LAYER] = LAYOUT_ortho_2x4(
36 KC_C, KC_C, KC_C, TO(1),
37 KC_C, KC_C, KC_C, TO(3)
38 ),
39 [FOURTH_LAYER] = LAYOUT_ortho_2x4(
40 KC_D, KC_D, KC_D, TO(2),
41 KC_D, KC_D, KC_D, TO(0)
42 )
43};
diff --git a/keyboards/handwired/stream_cheap/2x4/keymaps/via/rules.mk b/keyboards/handwired/stream_cheap/2x4/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x4/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes