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

Six Pack and ortho_ layout updates #13587

Merged
merged 16 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
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
2 changes: 1 addition & 1 deletion keyboards/40percentclub/5x5/info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"keyboard_name": "40percent.club 4x4",
"keyboard_name": "40percent.club 5x5",
"url": "",
"maintainer": "qmk",
"height": 4,
Expand Down
2 changes: 2 additions & 0 deletions keyboards/40percentclub/6lit/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ AUDIO_ENABLE = no # Audio output on port C6

# Enable generic behavior for split boards
SPLIT_KEYBOARD = yes

LAYOUTS = ortho_2x3 ortho_2x6
7 changes: 5 additions & 2 deletions keyboards/40percentclub/sixpack/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
// #define MATRIX_ROW_PINS { B0 } // B0 equivalents the ground pin
// #define MATRIX_COL_PINS { E6, D7, C6, D4 }
#define DIRECT_PINS { \
{ D4, C6, D7 }, \
{ E6, B4, B5 } \
Expand All @@ -56,6 +54,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_LEVELS 6
#define BACKLIGHT_PINS { F4, F5 } // Top Row, Bottom Row

/* LED Indicators */
#define LED_PIN_ON_STATE 0
#define LED_CAPS_LOCK_PIN B0 // RX Led
#define LED_NUM_LOCK_PIN D5 // TX Led

// #define RGB_DI_PIN B1 // PB1 on expansion connector
// #ifdef RGB_DI_PIN
// #define RGBLED_NUM 16
Expand Down
2 changes: 1 addition & 1 deletion keyboards/40percentclub/sixpack/info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"keyboard_name": "sixpack",
"keyboard_name": "Six Pack",
"url": "https://www.40percent.club/2017/05/six-pack-11.html",
"maintainer": "qmk",
"width": 3,
Expand Down
4 changes: 0 additions & 4 deletions keyboards/40percentclub/sixpack/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,5 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS),
[3] = LAYOUT_ortho_2x3(KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),
[4] = LAYOUT_ortho_2x3(KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),
[5] = LAYOUT_ortho_2x3(KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),

};
2 changes: 2 additions & 0 deletions keyboards/40percentclub/sixpack/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output

LAYOUTS = ortho_2x3
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[_BASE] = LAYOUT_ortho_2x3(
KC_F1, KC_F2, KC_F3,
KC_F4, KC_F5,KC_F6
KC_F4, KC_F5, KC_F6
),
};

2 changes: 2 additions & 0 deletions keyboards/boardsource/holiday/spooky/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output

LAYOUTS = ortho_2x3
3 changes: 3 additions & 0 deletions keyboards/handwired/stream_cheap/2x3/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Stream Cheap

An ortholinear macropad, 2x3 configuration.
2 changes: 2 additions & 0 deletions keyboards/handwired/stream_cheap/2x3/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output

LAYOUTS = ortho_2x3
3 changes: 3 additions & 0 deletions keyboards/handwired/stream_cheap/2x4/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Stream Cheap

An ortholinear macropad, 2x4 configuration.
3 changes: 3 additions & 0 deletions keyboards/handwired/stream_cheap/2x5/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Stream Cheap

An ortholinear macropad, 2x5 configuration.
2 changes: 1 addition & 1 deletion keyboards/sixkeyboard/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"width": 3,
"height": 2,
"layouts": {
"LAYOUT": {
"LAYOUT_ortho_2x3": {
"layout": [{"label":"k00", "x":0, "y":0}, {"label":"k01", "x":1, "y":0}, {"label":"k02", "x":2, "y":0}, {"label":"k10", "x":0, "y":1}, {"label":"k11", "x":1, "y":1}, {"label":"k12", "x":2, "y":1}]
}
}
Expand Down
2 changes: 1 addition & 1 deletion keyboards/sixkeyboard/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "matrix.h"

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
[0] = LAYOUT_ortho_2x3(
KC_A, KC_B, KC_C, \
KC_D, KC_E, KC_F \
)
Expand Down
8 changes: 4 additions & 4 deletions keyboards/sixkeyboard/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
[0] = LAYOUT_ortho_2x3(
KC_A, KC_B, KC_C,
KC_D, KC_E, KC_F
),

[1] = LAYOUT(
[1] = LAYOUT_ortho_2x3(
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS
),

[2] = LAYOUT(
[2] = LAYOUT_ortho_2x3(
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS
),

[3] = LAYOUT(
[3] = LAYOUT_ortho_2x3(
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS
)
Expand Down
3 changes: 2 additions & 1 deletion keyboards/sixkeyboard/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
CUSTOM_MATRIX = yes

SRC = matrix.c
SRC += matrix.c
LAYOUTS = ortho_2x3
2 changes: 1 addition & 1 deletion keyboards/sixkeyboard/sixkeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* │ D │ E │ F │
* └───┴───┴───┘
*/
#define LAYOUT( \
#define LAYOUT_ortho_2x3( \
k00, k01, k02, \
k10, k11, k12 \
) { \
Expand Down
3 changes: 3 additions & 0 deletions layouts/community/ortho_1x4/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ortho_1x4

LAYOUT_ortho_1x4
2 changes: 2 additions & 0 deletions layouts/community/ortho_2x3/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
["","",""],
["","",""]
3 changes: 3 additions & 0 deletions layouts/community/ortho_2x3/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ortho_2x3

LAYOUT_ortho_2x3
2 changes: 2 additions & 0 deletions layouts/community/ortho_2x6/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
["","","","","",""],
["","","","","",""]
3 changes: 3 additions & 0 deletions layouts/community/ortho_2x6/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ortho_2x6

LAYOUT_ortho_2x6
6 changes: 5 additions & 1 deletion layouts/community/ortho_5x5/layout.json
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
["","","","",""],["","","","",""],["","","","",""],["","","","",""],["","","","",""]
["","","","",""],
["","","","",""],
["","","","",""],
["","","","",""],
["","","","",""]
15 changes: 15 additions & 0 deletions layouts/default/ortho_2x3/default_ortho_2x3/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┐
* │ A │ B │ C │
* ├───┼───┼───┤
* │ D │ E │ F │
* └───┴───┴───┘
*/
[0] = LAYOUT_ortho_2x3(
KC_A, KC_B, KC_C,
KC_D, KC_E, KC_F
)
};
20 changes: 20 additions & 0 deletions layouts/default/ortho_2x3/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"keyboard_name": "2x3 ortholinear layout",
"url": "",
"maintainer": "qmk",
"width": 3,
"height": 2,
"layouts": {
"LAYOUT_ortho_2x3": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},

{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1}
]
}
}
}
2 changes: 2 additions & 0 deletions layouts/default/ortho_2x3/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
["","",""],
["","",""]
3 changes: 3 additions & 0 deletions layouts/default/ortho_2x3/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ortho_2x3

LAYOUT_ortho_2x3
15 changes: 15 additions & 0 deletions layouts/default/ortho_2x6/default_ortho_2x6/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┬───┬───┬───┐
* │ A │ B │ C │ D │ E │ F │
* ├───┼───┼───┼───┼───┼───┤
* │ G │ H │ I │ J │ K │ L │
* └───┴───┴───┴───┴───┴───┘
*/
[0] = LAYOUT_ortho_2x6(
KC_A, KC_B, KC_C, KC_D, KC_E, KC_F,
KC_G, KC_H, KC_I, KC_J, KC_K, KC_L
)
};
15 changes: 15 additions & 0 deletions layouts/default/ortho_2x6/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"keyboard_name": "2x6 ortholinear layout",
"url": "",
"maintainer": "qmk",
"width": 6,
"height": 2,
"layouts": {
"LAYOUT_ortho_2x6": {
"layout": [
{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0},
{"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}
]
Suschman marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
2 changes: 2 additions & 0 deletions layouts/default/ortho_2x6/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
["","","","","",""],
["","","","","",""]
3 changes: 3 additions & 0 deletions layouts/default/ortho_2x6/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ortho_2x6

LAYOUT_ortho_2x6
18 changes: 18 additions & 0 deletions layouts/default/ortho_5x5/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"keyboard_name": "5x5 ortholinear layout",
"url": "",
"maintainer": "qmk",
"width": 5,
"height": 5,
"layouts": {
"LAYOUT_ortho_5x5": {
"layout": [
{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0},
{"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1},
{"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2},
{"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3},
{"x":0, "y":4}, {"x":1, "y":4}, {"x":2, "y":4}, {"x":3, "y":4}, {"x":4, "y":4}
]
Suschman marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
5 changes: 5 additions & 0 deletions layouts/default/ortho_5x5/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
["","","","",""],
["","","","",""],
["","","","",""],
["","","","",""],
["","","","",""]
3 changes: 3 additions & 0 deletions layouts/default/ortho_5x5/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ortho_5x5

LAYOUT_ortho_5x5