aboutsummaryrefslogtreecommitdiff
path: root/keyboards/boardsource/4x12
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/boardsource/4x12')
-rw-r--r--keyboards/boardsource/4x12/4x12.c1
-rw-r--r--keyboards/boardsource/4x12/4x12.h14
-rw-r--r--keyboards/boardsource/4x12/config.h70
-rw-r--r--keyboards/boardsource/4x12/info.json62
-rw-r--r--keyboards/boardsource/4x12/keymaps/codecoffeecode/keymap.c85
-rw-r--r--keyboards/boardsource/4x12/keymaps/default/keymap.c36
-rw-r--r--keyboards/boardsource/4x12/keymaps/via/keymap.c36
-rw-r--r--keyboards/boardsource/4x12/keymaps/via/readme.md5
-rw-r--r--keyboards/boardsource/4x12/keymaps/via/rules.mk1
-rw-r--r--keyboards/boardsource/4x12/readme.md12
-rw-r--r--keyboards/boardsource/4x12/rules.mk24
11 files changed, 346 insertions, 0 deletions
diff --git a/keyboards/boardsource/4x12/4x12.c b/keyboards/boardsource/4x12/4x12.c
new file mode 100644
index 000000000..2aec6900a
--- /dev/null
+++ b/keyboards/boardsource/4x12/4x12.c
@@ -0,0 +1 @@
#include "4x12.h"
diff --git a/keyboards/boardsource/4x12/4x12.h b/keyboards/boardsource/4x12/4x12.h
new file mode 100644
index 000000000..52c23708f
--- /dev/null
+++ b/keyboards/boardsource/4x12/4x12.h
@@ -0,0 +1,14 @@
1#pragma once
2#include "quantum.h"
3
4#define LAYOUT_ortho_4x12( \
5 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, \
6 K12, K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23, \
7 K24, K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, K35, \
8 K36, K37, K38, K39, K40, K41, K42, K43, K44, K45, K46, K47 \
9 ) { \
10 {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11}, \
11 {K12, K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23}, \
12 {K24, K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, K35}, \
13 {K36, K37, K38, K39, K40, K41, K42, K43, K44, K45, K46, K47} \
14 }
diff --git a/keyboards/boardsource/4x12/config.h b/keyboards/boardsource/4x12/config.h
new file mode 100644
index 000000000..967bb1c9f
--- /dev/null
+++ b/keyboards/boardsource/4x12/config.h
@@ -0,0 +1,70 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0x4273 // "Bs" - Boardsource
7#define PRODUCT_ID 0x0412
8#define DEVICE_VER 0x0000
9#define MANUFACTURER Boardsource
10#define PRODUCT 4x12
11
12/* key matrix size */
13#define MATRIX_ROWS 4
14#define MATRIX_COLS 12
15#define MATRIX_ROW_PINS { D2, D3, D1, D0}
16#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, B5, B4, E6, D7 }
17
18#define DIODE_DIRECTION COL2ROW
19
20/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not 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/* Locking resynchronize hack */
26#define LOCKING_RESYNC_ENABLE
27
28/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
29 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
30 */
31// #define GRAVE_ESC_CTRL_OVERRIDE
32
33/*
34 * Force NKRO
35 *
36 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
37 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
38 * makefile for this to work.)
39 *
40 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
41 * until the next keyboard reset.
42 *
43 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
44 * fully operational during normal computer usage.
45 *
46 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
47 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
48 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
49 * power-up.
50 *
51 */
52//#define FORCE_NKRO
53
54/*
55 * Feature disable options
56 * These options are also useful to firmware size reduction.
57 */
58
59/* disable debug print */
60//#define NO_DEBUG
61
62/* disable print */
63//#define NO_PRINT
64
65/* disable action features */
66//#define NO_ACTION_LAYER
67//#define NO_ACTION_TAPPING
68//#define NO_ACTION_ONESHOT
69//#define NO_ACTION_MACRO
70//#define NO_ACTION_FUNCTION
diff --git a/keyboards/boardsource/4x12/info.json b/keyboards/boardsource/4x12/info.json
new file mode 100644
index 000000000..bb4acbbfe
--- /dev/null
+++ b/keyboards/boardsource/4x12/info.json
@@ -0,0 +1,62 @@
1{
2 "keyboard_name": "Boardsource 4x12",
3 "url": "https://boardsource.xyz",
4 "maintainer": "Boardsource",
5 "layouts": {
6 "LAYOUT_ortho_4x12": {
7 "layout": [
8 { "label": "K01", "x": 0, "y": 0 },
9 { "label": "K02", "x": 1, "y": 0 },
10 { "label": "K03", "x": 2, "y": 0 },
11 { "label": "K04", "x": 3, "y": 0 },
12 { "label": "K05", "x": 4, "y": 0 },
13 { "label": "K06", "x": 5, "y": 0 },
14 { "label": "K07", "x": 6, "y": 0 },
15 { "label": "K08", "x": 7, "y": 0 },
16 { "label": "K09", "x": 8, "y": 0 },
17 { "label": "K010", "x": 9, "y": 0 },
18 { "label": "K011", "x": 10, "y": 0 },
19 { "label": "K012", "x": 11, "y": 0 },
20
21 { "label": "K11", "x": 0, "y": 1 },
22 { "label": "K12", "x": 1, "y": 1 },
23 { "label": "K13", "x": 2, "y": 1 },
24 { "label": "K14", "x": 3, "y": 1 },
25 { "label": "K15", "x": 4, "y": 1 },
26 { "label": "K16", "x": 5, "y": 1 },
27 { "label": "K17", "x": 6, "y": 1 },
28 { "label": "K18", "x": 7, "y": 1 },
29 { "label": "K19", "x": 8, "y": 1 },
30 { "label": "K110", "x": 9, "y": 1 },
31 { "label": "K111", "x": 10, "y": 1 },
32 { "label": "K112", "x": 11, "y": 1 },
33
34 { "label": "K21", "x": 0, "y": 2 },
35 { "label": "K22", "x": 1, "y": 2 },
36 { "label": "K23", "x": 2, "y": 2 },
37 { "label": "K24", "x": 3, "y": 2 },
38 { "label": "K25", "x": 4, "y": 2 },
39 { "label": "K26", "x": 5, "y": 2 },
40 { "label": "K27", "x": 6, "y": 2 },
41 { "label": "K28", "x": 7, "y": 2 },
42 { "label": "K29", "x": 8, "y": 2 },
43 { "label": "K210", "x": 9, "y": 2 },
44 { "label": "K211", "x": 10, "y": 2 },
45 { "label": "K212", "x": 11, "y": 2 },
46
47 { "label": "K31", "x": 0, "y": 3 },
48 { "label": "K32", "x": 1, "y": 3 },
49 { "label": "K33", "x": 2, "y": 3 },
50 { "label": "K34", "x": 3, "y": 3 },
51 { "label": "K35", "x": 4, "y": 3 },
52 { "label": "K36", "x": 5, "y": 3 },
53 { "label": "K37", "x": 6, "y": 3 },
54 { "label": "K38", "x": 7, "y": 3 },
55 { "label": "K39", "x": 8, "y": 3 },
56 { "label": "K310", "x": 9, "y": 3 },
57 { "label": "K311", "x": 10, "y": 3 },
58 { "label": "K312", "x": 11, "y": 3 }
59 ]
60 }
61 }
62}
diff --git a/keyboards/boardsource/4x12/keymaps/codecoffeecode/keymap.c b/keyboards/boardsource/4x12/keymaps/codecoffeecode/keymap.c
new file mode 100644
index 000000000..0ea2b4cef
--- /dev/null
+++ b/keyboards/boardsource/4x12/keymaps/codecoffeecode/keymap.c
@@ -0,0 +1,85 @@
1/* Copyright 2020 codecoffeecode
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 _MAIN,
21 _LOWER,
22 _RAISE,
23};
24
25// Readability keycodes
26#define LOWER MO(_LOWER)
27#define RAISE MO(_RAISE)
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30
31 /* Layer _MAIN
32 * ,-----------------------------------------------------------------------------------.
33 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
34 * |------+------+------+------+------+-------------+------+------+------+------+------|
35 * | Esc | A | S | D | F | G | H | J | K | L | ; | " |
36 * |------+------+------+------+------+------|------+------+------+------+------+------|
37 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
38 * |------+------+------+------+------+------+------+------+------+------+------+------|
39 * | Ctrl | Caps | Alt | GUI |Layer1| Space |Layer2| Left | Down | Up |Right |
40 * `-----------------------------------------------------------------------------------'
41 */
42 [_MAIN] = LAYOUT_ortho_4x12(
43 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
44 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
45 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
46 KC_LCTL, KC_CAPS, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
47 ),
48
49 /* Layer _LOWER
50 * ,-----------------------------------------------------------------------------------.
51 * | ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | Del |
52 * |------+------+------+------+------+-------------+------+------+------+------+------|
53 * | | Vol- | Vol+ | Mute | Play | | | F11 | F12 | | | |
54 * |------+------+------+------+------+------|------+------+------+------+------+------|
55 * | | | | | | | | | | | | |
56 * |------+------+------+------+------+------+------+------+------+------+------+------|
57 * | Reset| | | | | | | | | | | |
58 * `-----------------------------------------------------------------------------------'
59 */
60 [_LOWER] = LAYOUT_ortho_4x12(
61 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,
62 _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_MPLY, _______, _______, KC_F11, KC_F12, _______, _______, _______,
63 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
64 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
65 ),
66
67 /* Layer _RAISE
68 * ,-----------------------------------------------------------------------------------.
69 * | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | |
70 * |------+------+------+------+------+-------------+------+------+------+------+------|
71 * | | | | | | | | - | = | [ | ] | \ |
72 * |------+------+------+------+------+------|------+------+------+------+------+------|
73 * | | | | | | | | | | | | |
74 * |------+------+------+------+------+------+------+------+------+------+------+------|
75 * | | | | | | | | | | | | |
76 * `-----------------------------------------------------------------------------------'
77 */
78 [_RAISE] = LAYOUT_ortho_4x12(
79 _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
80 _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
81 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
82 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
83 )
84
85};
diff --git a/keyboards/boardsource/4x12/keymaps/default/keymap.c b/keyboards/boardsource/4x12/keymaps/default/keymap.c
new file mode 100644
index 000000000..d9a0c47a6
--- /dev/null
+++ b/keyboards/boardsource/4x12/keymaps/default/keymap.c
@@ -0,0 +1,36 @@
1#include QMK_KEYBOARD_H
2
3enum layers {
4 _MAIN,
5 _RAISE,
6 _LOWER,
7};
8
9// Readability keycodes
10#define LOWER MO(_LOWER)
11#define RAISE MO(_RAISE)
12
13const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
14
15 [_MAIN] = LAYOUT_ortho_4x12(
16 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
17 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
18 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
19 KC_PIPE, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
20 ),
21
22 [_RAISE] = LAYOUT_ortho_4x12(
23 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
24 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
25 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______,
26 RESET, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
27 ),
28
29 [_LOWER] = LAYOUT_ortho_4x12(
30 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
31 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
32 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
34 )
35
36};
diff --git a/keyboards/boardsource/4x12/keymaps/via/keymap.c b/keyboards/boardsource/4x12/keymaps/via/keymap.c
new file mode 100644
index 000000000..d9a0c47a6
--- /dev/null
+++ b/keyboards/boardsource/4x12/keymaps/via/keymap.c
@@ -0,0 +1,36 @@
1#include QMK_KEYBOARD_H
2
3enum layers {
4 _MAIN,
5 _RAISE,
6 _LOWER,
7};
8
9// Readability keycodes
10#define LOWER MO(_LOWER)
11#define RAISE MO(_RAISE)
12
13const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
14
15 [_MAIN] = LAYOUT_ortho_4x12(
16 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
17 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
18 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
19 KC_PIPE, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
20 ),
21
22 [_RAISE] = LAYOUT_ortho_4x12(
23 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
24 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
25 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______,
26 RESET, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
27 ),
28
29 [_LOWER] = LAYOUT_ortho_4x12(
30 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
31 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
32 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
34 )
35
36};
diff --git a/keyboards/boardsource/4x12/keymaps/via/readme.md b/keyboards/boardsource/4x12/keymaps/via/readme.md
new file mode 100644
index 000000000..534633d45
--- /dev/null
+++ b/keyboards/boardsource/4x12/keymaps/via/readme.md
@@ -0,0 +1,5 @@
1# The via keymap for boardsource 4x12 ortholinear keybaoard
2
3This folder contains the [VIA](https://caniusevia.com/) configuration for the boardsource 4x12 ortholinear keybaoard
4
5Maintained by: [gwillad](https://github.com/gwillad)
diff --git a/keyboards/boardsource/4x12/keymaps/via/rules.mk b/keyboards/boardsource/4x12/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/boardsource/4x12/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/boardsource/4x12/readme.md b/keyboards/boardsource/4x12/readme.md
new file mode 100644
index 000000000..17cf01ed0
--- /dev/null
+++ b/keyboards/boardsource/4x12/readme.md
@@ -0,0 +1,12 @@
1# 4x12
2![boardsource 4x12](https://i.imgur.com/rVtAEq5.jpg)
3
4* Keyboard Maintainer: [Boardsource](https://github.com/daysgobye)
5* Hardware Supported: 4x12 v1
6* Hardware Availability: this keyboard is available from the [Boardsource store](https://boardsource.xyz/store/5ecb7dad86879c9a0c22db32)
7
8Make example for this keyboard (after setting up your build environment):
9
10 make boardsource/4x12:default
11
12See 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). \ No newline at end of file
diff --git a/keyboards/boardsource/4x12/rules.mk b/keyboards/boardsource/4x12/rules.mk
new file mode 100644
index 000000000..061f93abf
--- /dev/null
+++ b/keyboards/boardsource/4x12/rules.mk
@@ -0,0 +1,24 @@
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 = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = yes # Console for debug
14COMMAND_ENABLE = yes # Commands for debug and configuration
15NKRO_ENABLE = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17AUDIO_ENABLE = no # Audio output
18
19LAYOUTS = ortho_4x12
20
21# Disable unsupported hardware
22RGBLIGHT_SUPPORTED = no
23AUDIO_SUPPORTED = no
24BACKLIGHT_SUPPORTED = no