Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] Added a new handwired 2x3,2x4,2x5 keyboard called the Stream_cheap #9871

Merged
merged 28 commits into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f6eab0f
Added a new handwired 2x3,2x4,2x5 keyboard called the Stream_cheap
hartk1213 Jul 29, 2020
3eb13b8
added missing commas in info.json files
hartk1213 Jul 30, 2020
8a5b805
update config to change pin definition
hartk1213 Jul 30, 2020
06f9a06
changed keymap.c for 2x4
hartk1213 Jul 30, 2020
467166f
testing more changes to the keymap to the 2x5
hartk1213 Jul 30, 2020
9e8eba4
Update keyboards/handwired/stream_cheap/2x3/2x3.c
hartk1213 Jul 30, 2020
4e5eafa
Update keyboards/handwired/stream_cheap/2x3/config.h
hartk1213 Jul 30, 2020
2506aa8
Update keyboards/handwired/stream_cheap/2x3/rules.mk
hartk1213 Jul 30, 2020
55323d5
Update keyboards/handwired/stream_cheap/2x5/config.h
hartk1213 Jul 30, 2020
bea5c07
Update keyboards/handwired/stream_cheap/2x5/info.json
hartk1213 Jul 30, 2020
21932ef
Update keyboards/handwired/stream_cheap/2x3/config.h
hartk1213 Jul 30, 2020
6ee196b
Update keyboards/handwired/stream_cheap/2x3/info.json
hartk1213 Jul 30, 2020
7d9132f
Update keyboards/handwired/stream_cheap/2x4/config.h
hartk1213 Jul 30, 2020
c4c9819
Update keyboards/handwired/stream_cheap/2x4/info.json
hartk1213 Jul 30, 2020
e076f34
Update keyboards/handwired/stream_cheap/2x4/keymaps/default/keymap.c
hartk1213 Jul 30, 2020
16b15c5
Update keyboards/handwired/stream_cheap/2x5/info.json
hartk1213 Jul 30, 2020
c925006
Update keyboards/handwired/stream_cheap/2x5/config.h
hartk1213 Jul 30, 2020
f57fb70
Update keyboards/handwired/stream_cheap/2x5/rules.mk
hartk1213 Jul 30, 2020
395d205
Update keyboards/handwired/stream_cheap/2x4/2x4.c
hartk1213 Jul 30, 2020
9d26ee3
Update keyboards/handwired/stream_cheap/2x4/config.h
hartk1213 Jul 30, 2020
05372f4
Update keyboards/handwired/stream_cheap/2x4/info.json
hartk1213 Jul 30, 2020
8998e71
Update keyboards/handwired/stream_cheap/2x5/2x5.c
hartk1213 Jul 30, 2020
59585c9
Update keyboards/handwired/stream_cheap/2x4/rules.mk
hartk1213 Jul 30, 2020
c6b7ff1
removed file as per request of user @zvecr
hartk1213 Jul 30, 2020
763753c
Merge branch 'stream_cheap' of https://github.com/hartk1213/qmk_firmw…
hartk1213 Jul 30, 2020
03957cb
removed line in rules.mk for 2x5
hartk1213 Jul 30, 2020
f89f7f8
Update keyboards/handwired/stream_cheap/2x5/keymaps/default/keymap.c
hartk1213 Jul 31, 2020
1994059
Apply suggestions from code review
hartk1213 Jul 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions keyboards/handwired/stream_cheap/2x3/2x3.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "2x3.h"
11 changes: 11 additions & 0 deletions keyboards/handwired/stream_cheap/2x3/2x3.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#pragma once

#include "quantum.h"

#define LAYOUT_ortho_2x3( \
K00, K01, K02, \
K03, K04, K05 \
) { \
{ K00, K01, K02}, \
{ K03, K04, K05} \
}
27 changes: 27 additions & 0 deletions keyboards/handwired/stream_cheap/2x3/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x1213
#define DEVICE_VER 0x0001
#define MANUFACTURER Kyle Hart
#define PRODUCT Stream Cheap 2x3

/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 3

/* define direct pins used */
#define DIRECT_PINS { { D1,C6,B4}, { D0,D4,D7} }


/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
19 changes: 19 additions & 0 deletions keyboards/handwired/stream_cheap/2x3/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"keyboard_name": "Stream Cheap 2x3",
"url": "https://www.thingiverse.com/thing:4497991",
"maintainer": "qmk",
"width": 3,
"height": 2,
"layouts": {
"LAYOUT_ortho_2x3": {
"layout": [
{"label":"K00", "x":0, "y":0},
{"label":"K01", "x":1, "y":0},
{"label":"K02", "x":2, "y":0},
{"label":"K03", "x":0, "y":1},
{"label":"K04", "x":1, "y":1},
{"label":"K05", "x":2, "y":1}
]
}
}
}
21 changes: 21 additions & 0 deletions keyboards/handwired/stream_cheap/2x3/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include QMK_KEYBOARD_H

enum layers {
NORMAL_LAYER = 0,
SECOND_LAYER
};



const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[NORMAL_LAYER] = LAYOUT_ortho_2x3(
KC_1, KC_2, KC_3,
KC_4, KC_5, TO(1)
),
[SECOND_LAYER] = LAYOUT_ortho_2x3(
KC_A, KC_B, KC_C,
KC_D, KC_E, TO(0)
)
};

22 changes: 22 additions & 0 deletions keyboards/handwired/stream_cheap/2x3/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
BOOTLOADER = caterina

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output
1 change: 1 addition & 0 deletions keyboards/handwired/stream_cheap/2x4/2x4.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "2x4.h"
12 changes: 12 additions & 0 deletions keyboards/handwired/stream_cheap/2x4/2x4.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

#include "quantum.h"

#define LAYOUT_ortho_2x4(\
K00, K01, K02,K03, \
K04, K05, K06,K07 \
) \
{ \
{ K00,K01,K02,K03}, \
{ K04,K05,K06,K07} \
}
27 changes: 27 additions & 0 deletions keyboards/handwired/stream_cheap/2x4/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x1214
#define DEVICE_VER 0x0001
#define MANUFACTURER Kyle Hart
#define PRODUCT Stream Cheap 2x4

/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 4

/* define direct pins used */
#define DIRECT_PINS { { B5,D7,C6,D1}, { B4,E6,D4,D0} }


/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
21 changes: 21 additions & 0 deletions keyboards/handwired/stream_cheap/2x4/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"keyboard_name": "Stream Cheap 2x4",
"url": "https://www.thingiverse.com/thing:4497991",
"maintainer": "qmk",
"width": 4,
"height": 2,
"layouts": {
"LAYOUT_ortho_2x4": {
"layout": [
{"label":"K00", "x":0, "y":0},
{"label":"K01", "x":1, "y":0},
{"label":"K02", "x":2, "y":0},
{"label":"K03", "x":3, "y":0},
{"label":"K04", "x":0, "y":1},
{"label":"K05", "x":1, "y":1},
{"label":"K06", "x":2, "y":1},
{"label":"K07", "x":3, "y":1}
]
}
}
}
46 changes: 46 additions & 0 deletions keyboards/handwired/stream_cheap/2x4/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#include QMK_KEYBOARD_H


enum layers {
NORMAL_LAYER = 0,
SECOND_LAYER
};

enum custom_keycode {
VS_COMMENT = SAFE_RANGE,
VS_UNCOMMENT,
TST_STRING
};


bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case VS_COMMENT:
if (record->event.pressed) {
SEND_STRING(SS_LCTL("kc"));
}
break;
case VS_UNCOMMENT:
if (record->event.pressed) {
SEND_STRING(SS_LCTL("ku"));
}
break;
case TST_STRING:
if (record->event.pressed) {
SEND_STRING("12345\n");
}
break;

}
return true;
}
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[NORMAL_LAYER] = LAYOUT_ortho_2x4(
VS_COMMENT, VS_UNCOMMENT, TST_STRING, KC_4,
KC_5, KC_6, KC_7, TO(1)
),
[SECOND_LAYER] = LAYOUT_ortho_2x4(
KC_A, KC_B, KC_C, KC_D,
KC_E, KC_F, KC_G, TO(0)
)
};
22 changes: 22 additions & 0 deletions keyboards/handwired/stream_cheap/2x4/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
BOOTLOADER = caterina

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output
1 change: 1 addition & 0 deletions keyboards/handwired/stream_cheap/2x5/2x5.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "2x5.h"
11 changes: 11 additions & 0 deletions keyboards/handwired/stream_cheap/2x5/2x5.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#pragma once

#include "quantum.h"

#define LAYOUT_ortho_2x5( \
K00, K01, K02, K03, K04, \
K10, K11, K12, K13, K14 \
) { \
{ K00, K01, K02, K03, K04 }, \
{ K10, K11, K12, K13, K14 } \
}
26 changes: 26 additions & 0 deletions keyboards/handwired/stream_cheap/2x5/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x1215
#define DEVICE_VER 0x0001
#define MANUFACTURER Kyle Hart
#define PRODUCT Stream Cheap 2x5

/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 5

/* define direct pins used */
#define DIRECT_PINS { { D1,C6,B4,B5,B2}, { D0,D4,D7,E6,B6} }
//#define DIRECT_PINS { { D1, C6, B4, B6, D0}, { D7, D4, B2, B5, E6} }
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
23 changes: 23 additions & 0 deletions keyboards/handwired/stream_cheap/2x5/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"keyboard_name": "Stream Cheap 2x5",
"url": "https://www.thingiverse.com/thing:4497991",
"maintainer": "qmk",
"width": 5,
"height": 2,
"layouts": {
"LAYOUT_ortho_2x5": {
"layout": [
{"label":"K00", "x":0, "y":0},
{"label":"K01", "x":1, "y":0},
{"label":"K02", "x":2, "y":0},
{"label":"K03", "x":3, "y":0},
{"label":"K04", "x":4, "y":0},
{"label":"K10", "x":0, "y":1},
{"label":"K11", "x":1, "y":1},
{"label":"K12", "x":2, "y":1},
{"label":"K13", "x":3, "y":1},
{"label":"K14", "x":4, "y":1}
]
}
}
}
60 changes: 60 additions & 0 deletions keyboards/handwired/stream_cheap/2x5/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#include QMK_KEYBOARD_H


enum custom_keycode {
VS_COMMENT = SAFE_RANGE,
VS_UNCOMMENT,
TST_STRING
};


bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case VS_COMMENT:
if (record->event.pressed) {
SEND_STRING(SS_LCTL("kc"));
}
break;
case VS_UNCOMMENT:
if (record->event.pressed) {
SEND_STRING(SS_LCTL("ku"));
}
break;
case TST_STRING:
if (record->event.pressed) {
SEND_STRING("12345\n");
}
break;

}
return true;
}

#define LOCK LGUI(KC_L)
#define CUT LCTL(KC_X)
#define COPY LCTL(KC_C)
#define PASTE LCTL(KC_V)
#define FIND LCTL(KC_F)

enum layers {
NORMAL_LAYER = 0,
SECOND_LAYER
// ,
// THIRD_LAYER
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[NORMAL_LAYER] = LAYOUT_ortho_2x5(
VS_COMMENT, VS_UNCOMMENT, LOCK, TST_STRING, KC_F5,
KC_F9, KC_F10, KC_F11, KC_F12, TO(1)
),
[SECOND_LAYER] = LAYOUT_ortho_2x5(
KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_MSTP,
CUT, COPY, PASTE, FIND, TO(0)
)
// ,
// [THIRD_LAYER] = LAYOUT_ortho_2x5(
// KC_Q, KC_W, KC_E, KC_R, KC_T,
// KC_Y, KC_U, KC_L, KC_P, TO(0)
// )
};
22 changes: 22 additions & 0 deletions keyboards/handwired/stream_cheap/2x5/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
BOOTLOADER = caterina

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output
Loading