aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/stream_cheap/2x3/2x3.c1
-rw-r--r--keyboards/handwired/stream_cheap/2x3/2x3.h11
-rw-r--r--keyboards/handwired/stream_cheap/2x3/config.h27
-rw-r--r--keyboards/handwired/stream_cheap/2x3/info.json19
-rw-r--r--keyboards/handwired/stream_cheap/2x3/keymaps/default/keymap.c21
-rw-r--r--keyboards/handwired/stream_cheap/2x3/rules.mk22
-rw-r--r--keyboards/handwired/stream_cheap/2x4/2x4.c1
-rw-r--r--keyboards/handwired/stream_cheap/2x4/2x4.h12
-rw-r--r--keyboards/handwired/stream_cheap/2x4/config.h27
-rw-r--r--keyboards/handwired/stream_cheap/2x4/info.json21
-rw-r--r--keyboards/handwired/stream_cheap/2x4/keymaps/default/keymap.c46
-rw-r--r--keyboards/handwired/stream_cheap/2x4/rules.mk22
-rw-r--r--keyboards/handwired/stream_cheap/2x5/2x5.c1
-rw-r--r--keyboards/handwired/stream_cheap/2x5/2x5.h11
-rw-r--r--keyboards/handwired/stream_cheap/2x5/config.h26
-rw-r--r--keyboards/handwired/stream_cheap/2x5/info.json23
-rw-r--r--keyboards/handwired/stream_cheap/2x5/keymaps/default/keymap.c60
-rw-r--r--keyboards/handwired/stream_cheap/2x5/rules.mk22
-rw-r--r--keyboards/handwired/stream_cheap/readme.md23
19 files changed, 396 insertions, 0 deletions
diff --git a/keyboards/handwired/stream_cheap/2x3/2x3.c b/keyboards/handwired/stream_cheap/2x3/2x3.c
new file mode 100644
index 000000000..688974787
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x3/2x3.c
@@ -0,0 +1 @@
#include "2x3.h"
diff --git a/keyboards/handwired/stream_cheap/2x3/2x3.h b/keyboards/handwired/stream_cheap/2x3/2x3.h
new file mode 100644
index 000000000..12e9a4609
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x3/2x3.h
@@ -0,0 +1,11 @@
1#pragma once
2
3#include "quantum.h"
4
5#define LAYOUT_ortho_2x3( \
6 K00, K01, K02, \
7 K03, K04, K05 \
8) { \
9 { K00, K01, K02}, \
10 { K03, K04, K05} \
11}
diff --git a/keyboards/handwired/stream_cheap/2x3/config.h b/keyboards/handwired/stream_cheap/2x3/config.h
new file mode 100644
index 000000000..a142ec4a4
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x3/config.h
@@ -0,0 +1,27 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0xFEED
7#define PRODUCT_ID 0x1213
8#define DEVICE_VER 0x0001
9#define MANUFACTURER Kyle Hart
10#define PRODUCT Stream Cheap 2x3
11
12/* key matrix size */
13#define MATRIX_ROWS 2
14#define MATRIX_COLS 3
15
16/* define direct pins used */
17#define DIRECT_PINS { { D1,C6,B4}, { D0,D4,D7} }
18
19
20/* Set 0 if debouncing isn't needed */
21#define DEBOUNCE 5
22
23/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
24#define LOCKING_SUPPORT_ENABLE
25
26/* Locking resynchronize hack */
27#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/handwired/stream_cheap/2x3/info.json b/keyboards/handwired/stream_cheap/2x3/info.json
new file mode 100644
index 000000000..cdf5e1392
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x3/info.json
@@ -0,0 +1,19 @@
1{
2 "keyboard_name": "Stream Cheap 2x3",
3 "url": "https://www.thingiverse.com/thing:4497991",
4 "maintainer": "qmk",
5 "width": 3,
6 "height": 2,
7 "layouts": {
8 "LAYOUT_ortho_2x3": {
9 "layout": [
10 {"label":"K00", "x":0, "y":0},
11 {"label":"K01", "x":1, "y":0},
12 {"label":"K02", "x":2, "y":0},
13 {"label":"K03", "x":0, "y":1},
14 {"label":"K04", "x":1, "y":1},
15 {"label":"K05", "x":2, "y":1}
16 ]
17 }
18 }
19}
diff --git a/keyboards/handwired/stream_cheap/2x3/keymaps/default/keymap.c b/keyboards/handwired/stream_cheap/2x3/keymaps/default/keymap.c
new file mode 100644
index 000000000..5ef589f6a
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x3/keymaps/default/keymap.c
@@ -0,0 +1,21 @@
1#include QMK_KEYBOARD_H
2
3enum layers {
4 NORMAL_LAYER = 0,
5 SECOND_LAYER
6};
7
8
9
10const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11
12 [NORMAL_LAYER] = LAYOUT_ortho_2x3(
13 KC_1, KC_2, KC_3,
14 KC_4, KC_5, TO(1)
15 ),
16 [SECOND_LAYER] = LAYOUT_ortho_2x3(
17 KC_A, KC_B, KC_C,
18 KC_D, KC_E, TO(0)
19 )
20};
21
diff --git a/keyboards/handwired/stream_cheap/2x3/rules.mk b/keyboards/handwired/stream_cheap/2x3/rules.mk
new file mode 100644
index 000000000..e4ffb10d0
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x3/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/handwired/stream_cheap/2x4/2x4.c b/keyboards/handwired/stream_cheap/2x4/2x4.c
new file mode 100644
index 000000000..a0519d21b
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x4/2x4.c
@@ -0,0 +1 @@
#include "2x4.h"
diff --git a/keyboards/handwired/stream_cheap/2x4/2x4.h b/keyboards/handwired/stream_cheap/2x4/2x4.h
new file mode 100644
index 000000000..07856044f
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x4/2x4.h
@@ -0,0 +1,12 @@
1#pragma once
2
3#include "quantum.h"
4
5#define LAYOUT_ortho_2x4(\
6 K00, K01, K02,K03, \
7 K04, K05, K06,K07 \
8) \
9 { \
10 { K00,K01,K02,K03}, \
11 { K04,K05,K06,K07} \
12}
diff --git a/keyboards/handwired/stream_cheap/2x4/config.h b/keyboards/handwired/stream_cheap/2x4/config.h
new file mode 100644
index 000000000..14b4d9e36
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x4/config.h
@@ -0,0 +1,27 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0xFEED
7#define PRODUCT_ID 0x1214
8#define DEVICE_VER 0x0001
9#define MANUFACTURER Kyle Hart
10#define PRODUCT Stream Cheap 2x4
11
12/* key matrix size */
13#define MATRIX_ROWS 2
14#define MATRIX_COLS 4
15
16/* define direct pins used */
17#define DIRECT_PINS { { B5,D7,C6,D1}, { B4,E6,D4,D0} }
18
19
20/* Set 0 if debouncing isn't needed */
21#define DEBOUNCE 5
22
23/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
24#define LOCKING_SUPPORT_ENABLE
25
26/* Locking resynchronize hack */
27#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/handwired/stream_cheap/2x4/info.json b/keyboards/handwired/stream_cheap/2x4/info.json
new file mode 100644
index 000000000..ef495dbf6
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x4/info.json
@@ -0,0 +1,21 @@
1{
2 "keyboard_name": "Stream Cheap 2x4",
3 "url": "https://www.thingiverse.com/thing:4497991",
4 "maintainer": "qmk",
5 "width": 4,
6 "height": 2,
7 "layouts": {
8 "LAYOUT_ortho_2x4": {
9 "layout": [
10 {"label":"K00", "x":0, "y":0},
11 {"label":"K01", "x":1, "y":0},
12 {"label":"K02", "x":2, "y":0},
13 {"label":"K03", "x":3, "y":0},
14 {"label":"K04", "x":0, "y":1},
15 {"label":"K05", "x":1, "y":1},
16 {"label":"K06", "x":2, "y":1},
17 {"label":"K07", "x":3, "y":1}
18 ]
19 }
20 }
21}
diff --git a/keyboards/handwired/stream_cheap/2x4/keymaps/default/keymap.c b/keyboards/handwired/stream_cheap/2x4/keymaps/default/keymap.c
new file mode 100644
index 000000000..541642f95
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x4/keymaps/default/keymap.c
@@ -0,0 +1,46 @@
1#include QMK_KEYBOARD_H
2
3
4enum layers {
5 NORMAL_LAYER = 0,
6 SECOND_LAYER
7};
8
9enum custom_keycode {
10 VS_COMMENT = SAFE_RANGE,
11 VS_UNCOMMENT,
12 TST_STRING
13};
14
15
16bool process_record_user(uint16_t keycode, keyrecord_t *record) {
17 switch (keycode) {
18 case VS_COMMENT:
19 if (record->event.pressed) {
20 SEND_STRING(SS_LCTL("kc"));
21 }
22 break;
23 case VS_UNCOMMENT:
24 if (record->event.pressed) {
25 SEND_STRING(SS_LCTL("ku"));
26 }
27 break;
28 case TST_STRING:
29 if (record->event.pressed) {
30 SEND_STRING("12345\n");
31 }
32 break;
33
34 }
35 return true;
36}
37const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
38 [NORMAL_LAYER] = LAYOUT_ortho_2x4(
39 VS_COMMENT, VS_UNCOMMENT, TST_STRING, KC_4,
40 KC_5, KC_6, KC_7, TO(1)
41 ),
42 [SECOND_LAYER] = LAYOUT_ortho_2x4(
43 KC_A, KC_B, KC_C, KC_D,
44 KC_E, KC_F, KC_G, TO(0)
45 )
46};
diff --git a/keyboards/handwired/stream_cheap/2x4/rules.mk b/keyboards/handwired/stream_cheap/2x4/rules.mk
new file mode 100644
index 000000000..e4ffb10d0
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x4/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/handwired/stream_cheap/2x5/2x5.c b/keyboards/handwired/stream_cheap/2x5/2x5.c
new file mode 100644
index 000000000..70969a316
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x5/2x5.c
@@ -0,0 +1 @@
#include "2x5.h"
diff --git a/keyboards/handwired/stream_cheap/2x5/2x5.h b/keyboards/handwired/stream_cheap/2x5/2x5.h
new file mode 100644
index 000000000..f01c8302a
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x5/2x5.h
@@ -0,0 +1,11 @@
1#pragma once
2
3#include "quantum.h"
4
5#define LAYOUT_ortho_2x5( \
6 K00, K01, K02, K03, K04, \
7 K10, K11, K12, K13, K14 \
8) { \
9 { K00, K01, K02, K03, K04 }, \
10 { K10, K11, K12, K13, K14 } \
11}
diff --git a/keyboards/handwired/stream_cheap/2x5/config.h b/keyboards/handwired/stream_cheap/2x5/config.h
new file mode 100644
index 000000000..cd69c632f
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x5/config.h
@@ -0,0 +1,26 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0xFEED
7#define PRODUCT_ID 0x1215
8#define DEVICE_VER 0x0001
9#define MANUFACTURER Kyle Hart
10#define PRODUCT Stream Cheap 2x5
11
12/* key matrix size */
13#define MATRIX_ROWS 2
14#define MATRIX_COLS 5
15
16/* define direct pins used */
17#define DIRECT_PINS { { D1,C6,B4,B5,B2}, { D0,D4,D7,E6,B6} }
18//#define DIRECT_PINS { { D1, C6, B4, B6, D0}, { D7, D4, B2, B5, E6} }
19/* Set 0 if debouncing isn't needed */
20#define DEBOUNCE 5
21
22/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
23#define LOCKING_SUPPORT_ENABLE
24
25/* Locking resynchronize hack */
26#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/handwired/stream_cheap/2x5/info.json b/keyboards/handwired/stream_cheap/2x5/info.json
new file mode 100644
index 000000000..9fd4b054f
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x5/info.json
@@ -0,0 +1,23 @@
1{
2 "keyboard_name": "Stream Cheap 2x5",
3 "url": "https://www.thingiverse.com/thing:4497991",
4 "maintainer": "qmk",
5 "width": 5,
6 "height": 2,
7 "layouts": {
8 "LAYOUT_ortho_2x5": {
9 "layout": [
10 {"label":"K00", "x":0, "y":0},
11 {"label":"K01", "x":1, "y":0},
12 {"label":"K02", "x":2, "y":0},
13 {"label":"K03", "x":3, "y":0},
14 {"label":"K04", "x":4, "y":0},
15 {"label":"K10", "x":0, "y":1},
16 {"label":"K11", "x":1, "y":1},
17 {"label":"K12", "x":2, "y":1},
18 {"label":"K13", "x":3, "y":1},
19 {"label":"K14", "x":4, "y":1}
20 ]
21 }
22 }
23}
diff --git a/keyboards/handwired/stream_cheap/2x5/keymaps/default/keymap.c b/keyboards/handwired/stream_cheap/2x5/keymaps/default/keymap.c
new file mode 100644
index 000000000..6d140a878
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x5/keymaps/default/keymap.c
@@ -0,0 +1,60 @@
1#include QMK_KEYBOARD_H
2
3
4enum custom_keycode {
5 VS_COMMENT = SAFE_RANGE,
6 VS_UNCOMMENT,
7 TST_STRING
8};
9
10
11bool process_record_user(uint16_t keycode, keyrecord_t *record) {
12 switch (keycode) {
13 case VS_COMMENT:
14 if (record->event.pressed) {
15 SEND_STRING(SS_LCTL("kc"));
16 }
17 break;
18 case VS_UNCOMMENT:
19 if (record->event.pressed) {
20 SEND_STRING(SS_LCTL("ku"));
21 }
22 break;
23 case TST_STRING:
24 if (record->event.pressed) {
25 SEND_STRING("12345\n");
26 }
27 break;
28
29 }
30 return true;
31}
32
33#define LOCK LGUI(KC_L)
34#define CUT LCTL(KC_X)
35#define COPY LCTL(KC_C)
36#define PASTE LCTL(KC_V)
37#define FIND LCTL(KC_F)
38
39enum layers {
40 NORMAL_LAYER = 0,
41 SECOND_LAYER
42 // ,
43 // THIRD_LAYER
44};
45
46const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
47 [NORMAL_LAYER] = LAYOUT_ortho_2x5(
48 VS_COMMENT, VS_UNCOMMENT, LOCK, TST_STRING, KC_F5,
49 KC_F9, KC_F10, KC_F11, KC_F12, TO(1)
50 ),
51 [SECOND_LAYER] = LAYOUT_ortho_2x5(
52 KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_MSTP,
53 CUT, COPY, PASTE, FIND, TO(0)
54 )
55 // ,
56 // [THIRD_LAYER] = LAYOUT_ortho_2x5(
57 // KC_Q, KC_W, KC_E, KC_R, KC_T,
58 // KC_Y, KC_U, KC_L, KC_P, TO(0)
59 // )
60};
diff --git a/keyboards/handwired/stream_cheap/2x5/rules.mk b/keyboards/handwired/stream_cheap/2x5/rules.mk
new file mode 100644
index 000000000..e4ffb10d0
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/2x5/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/handwired/stream_cheap/readme.md b/keyboards/handwired/stream_cheap/readme.md
new file mode 100644
index 000000000..1b4d77ea9
--- /dev/null
+++ b/keyboards/handwired/stream_cheap/readme.md
@@ -0,0 +1,23 @@
1# Stream Cheap
2
3An ortholinear macropad, available in 2x3, 2x4, and 2x5 sizes.
4
5Hardware:
6 * 3d printed switch plate
7 * 6-10 key switches
8 * 3d printed case
9 * Handwired in Direct Pins mode (i.e. all switches share a common GND and are wired to their own pin)
10 * Uses a Pro Micro
11 * Includes a reset switch accessible by a hole on the bottom
12
13* Keyboard Maintainer: [hartk1213](https://github.com/hartk1213)
14* Hardware Supported: Pro Micro
15* Hardware Availability: [Thingiverse](https://www.thingiverse.com/thing:4497991)
16
17Make example for this keyboard (after setting up your build environment):
18
19 make handwired/stream_cheap/2x3:default
20 make handwired/stream_cheap/2x4:default
21 make handwired/stream_cheap/2x5:default
22
23See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).