aboutsummaryrefslogtreecommitdiff
path: root/keyboards/steal_this_keyboard
diff options
context:
space:
mode:
authorobosob <obosob@users.noreply.github.com>2021-06-24 03:51:15 +0100
committerGitHub <noreply@github.com>2021-06-24 12:51:15 +1000
commit3cc037d8d86a148a8a61e594ad87766f9d0ddbd5 (patch)
tree9a1d3196086c476561a53c71bb16dd214ac0bdde /keyboards/steal_this_keyboard
parent543dca0d890da1cd1d2ce2ebbde9c31354522829 (diff)
downloadqmk_firmware-3cc037d8d86a148a8a61e594ad87766f9d0ddbd5.tar.gz
qmk_firmware-3cc037d8d86a148a8a61e594ad87766f9d0ddbd5.zip
Add "steal this keyboard" keybaord (#12898)
Diffstat (limited to 'keyboards/steal_this_keyboard')
-rw-r--r--keyboards/steal_this_keyboard/config.h67
-rw-r--r--keyboards/steal_this_keyboard/info.json54
-rw-r--r--keyboards/steal_this_keyboard/keymaps/default/config.h39
-rw-r--r--keyboards/steal_this_keyboard/keymaps/default/keymap.c92
-rw-r--r--keyboards/steal_this_keyboard/readme.md11
-rw-r--r--keyboards/steal_this_keyboard/rules.mk24
-rw-r--r--keyboards/steal_this_keyboard/steal_this_keyboard.c16
-rw-r--r--keyboards/steal_this_keyboard/steal_this_keyboard.h46
8 files changed, 349 insertions, 0 deletions
diff --git a/keyboards/steal_this_keyboard/config.h b/keyboards/steal_this_keyboard/config.h
new file mode 100644
index 000000000..ea637d0c2
--- /dev/null
+++ b/keyboards/steal_this_keyboard/config.h
@@ -0,0 +1,67 @@
1/* Copyright 2021 Obosob <obosob@riseup.net>
2
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License
14along with this program. If not, see <http://www.gnu.org/licenses/>.
15*/
16
17#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xC2AB
23#define PRODUCT_ID 0x50AD
24#define DEVICE_VER 0x0001
25#define MANUFACTURER Obosob
26#define PRODUCT Steal This Keyboard!
27
28/* key matrix size */
29#define MATRIX_ROWS 8
30#define MATRIX_COLS 5
31
32/*
33 * Keyboard Matrix Assignments
34 *
35 * Change this to how you wired your keyboard
36 * COLS: AVR pins used for columns, left to right
37 * ROWS: AVR pins used for rows, top to bottom
38 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
39 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
40 * NO_DIODE = switches are directly connected to AVR pins
41 *
42*/
43#define DIRECT_PINS { \
44 { F4, F7, B2, D1, D7 }, \
45 { F5, B1, B6, D0, E6 }, \
46 { F6, B3, D3, D4, B4 }, \
47 { C6, B5, NO_PIN, NO_PIN, NO_PIN } \
48}
49
50#define DIRECT_PINS_RIGHT { \
51 { D7, D1, B2, F7, F4}, \
52 { E6, D0, B6, B1, F5 }, \
53 { B4, D4, D3, B3, F6 }, \
54 { B5, C6, NO_PIN, NO_PIN, NO_PIN } \
55}
56
57#define UNUSED_PINS
58
59/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
60#define DEBOUNCE 5
61
62/* Serial settings */
63#define USE_SERIAL
64/* serial.c configuration for split keyboard */
65#define SOFT_SERIAL_PIN D2
66
67#define EE_HANDS
diff --git a/keyboards/steal_this_keyboard/info.json b/keyboards/steal_this_keyboard/info.json
new file mode 100644
index 000000000..4c2be48e9
--- /dev/null
+++ b/keyboards/steal_this_keyboard/info.json
@@ -0,0 +1,54 @@
1{
2 "keyboard_name": "steal this keyboard",
3 "url": "https://github.com/obosob/steal_this_keyboard",
4 "maintainer": "@obosob",
5 "width": 12,
6 "height": 4.75,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"x": 0, "y": 0.93},
11 {"x": 1, "y": 0.31},
12 {"x": 2, "y": 0},
13 {"x": 3, "y": 0.28},
14 {"x": 4, "y": 0.42},
15
16 {"x": 7, "y": 0.42},
17 {"x": 8, "y": 0.28},
18 {"x": 9, "y": 0},
19 {"x": 10, "y": 0.31},
20 {"x": 11, "y": 0.93},
21
22 {"x": 0, "y": 1.93},
23 {"x": 1, "y": 1.31},
24 {"x": 2, "y": 1},
25 {"x": 3, "y": 1.28},
26 {"x": 4, "y": 1.42},
27
28 {"x": 7, "y": 1.42},
29 {"x": 8, "y": 1.28},
30 {"x": 9, "y": 1},
31 {"x": 10, "y": 1.31},
32 {"x": 11, "y": 1.93},
33
34 {"x": 0, "y": 2.93},
35 {"x": 1, "y": 2.31},
36 {"x": 2, "y": 2},
37 {"x": 3, "y": 2.28},
38 {"x": 4, "y": 2.42},
39
40 {"x": 7, "y": 2.42},
41 {"x": 8, "y": 2.28},
42 {"x": 9, "y": 2},
43 {"x": 10, "y": 2.31},
44 {"x": 11, "y": 2.93},
45
46 {"x": 3.5, "y": 3.75},
47 {"x": 4.5, "y": 4},
48
49 {"x": 6.5, "y": 4},
50 {"x": 7.5, "y": 3.75}
51 ]
52 }
53 }
54}
diff --git a/keyboards/steal_this_keyboard/keymaps/default/config.h b/keyboards/steal_this_keyboard/keymaps/default/config.h
new file mode 100644
index 000000000..14ec0792b
--- /dev/null
+++ b/keyboards/steal_this_keyboard/keymaps/default/config.h
@@ -0,0 +1,39 @@
1/*
2Copyright 2021 Obosob <obosob@riseup.net>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19// Set the mouse settings to a comfortable speed/accuracy trade-off,
20// assuming a screen refresh rate of 60 Htz or higher
21// The default is 50. This makes the mouse ~3 times faster and more accurate
22#define MOUSEKEY_INTERVAL 16
23// The default is 20. Since we made the mouse about 3 times faster with the previous setting,
24// give it more time to accelerate to max speed to retain precise control over short distances.
25#define MOUSEKEY_TIME_TO_MAX 40
26// The default is 300. Let's try and make this as low as possible while keeping the cursor responsive
27#define MOUSEKEY_DELAY 100
28// It makes sense to use the same delay for the mouseweel
29#define MOUSEKEY_WHEEL_DELAY 100
30// The default is 100
31#define MOUSEKEY_WHEEL_INTERVAL 50
32// The default is 40
33#define MOUSEKEY_WHEEL_TIME_TO_MAX 100
34
35// Pick good defaults for enabling homerow modifiers
36#define TAPPING_TERM 200
37#define PERMISSIVE_HOLD
38#define IGNORE_MOD_TAP_INTERRUPT
39#define TAPPING_FORCE_HOLD
diff --git a/keyboards/steal_this_keyboard/keymaps/default/keymap.c b/keyboards/steal_this_keyboard/keymaps/default/keymap.c
new file mode 100644
index 000000000..32834c16b
--- /dev/null
+++ b/keyboards/steal_this_keyboard/keymaps/default/keymap.c
@@ -0,0 +1,92 @@
1/* Copyright 2021 Obosob <obosob@riseup.net>
2
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License
14along with this program. If not, see <http://www.gnu.org/licenses/>.
15*/
16
17#include QMK_KEYBOARD_H
18
19#define HM_A LSFT_T(KC_A)
20#define HM_S LT(5,KC_S)
21#define HM_D LT(1,KC_D)
22#define HM_F LT(3,KC_F)
23
24#define HM_J LT(4,KC_J)
25#define HM_K LT(2,KC_K)
26#define HM_L LT(6,KC_L)
27#define HM_SCLN LSFT_T(KC_SCLN)
28
29#define MT_X LCTL_T(KC_X)
30#define MT_C LALT_T(KC_C)
31#define MT_SPC LT(7,KC_SPC)
32#define MT_COMM LALT_T(KC_COMM)
33#define MT_DOT LCTL_T(KC_DOT)
34
35#define CTL_ALT LCTL(KC_LALT)
36#define CT_AL_S LCA(KC_LSFT)
37
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39 [0] = LAYOUT_split_3x5_2(
40KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
41HM_A, HM_S, HM_D, HM_F, KC_G, KC_H, HM_J, HM_K, HM_L, HM_SCLN,
42KC_Z, MT_X, MT_C, KC_V, KC_B, KC_N, KC_M, MT_COMM, MT_DOT, KC_SLSH,
43 KC_P0, KC_BSPC, MT_SPC, KC_P1
44 ),
45 [1] = LAYOUT_split_3x5_2(
46_______, _______, _______, _______, _______, _______, KC_BTN1, KC_WH_U, KC_BTN2, _______,
47_______, KC_BTN2, XXXXXXX, KC_BTN1, _______, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R,
48_______, _______, _______, _______, _______, _______, KC_WH_L, KC_WH_D, KC_WH_R, _______,
49 _______, _______, _______, _______
50 ),
51 [2] = LAYOUT_split_3x5_2(
52_______, _______, KC_PGUP, _______, _______, _______, _______, _______, _______, _______,
53KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, _______, _______, KC_LGUI, XXXXXXX, CTL_ALT, CT_AL_S,
54_______, KC_HOME, KC_PGDN, KC_END, _______, _______, _______, _______, _______, _______,
55 _______, _______, _______, _______
56 ),
57 [3] = LAYOUT_split_3x5_2(
58_______, _______, _______, _______, _______, _______, KC_UNDS, KC_PIPE, KC_QUOT, _______,
59KC_CIRC, KC_ASTR, KC_AMPR, XXXXXXX, _______, KC_HASH, KC_TILD, KC_SLSH, KC_DQUO, KC_DLR,
60_______, _______, _______, _______, _______, _______, KC_MINS, KC_BSLS, KC_GRV, _______,
61 _______, _______, _______, _______
62 ),
63 [4] = LAYOUT_split_3x5_2(
64_______, KC_COLN, KC_LT, KC_GT, KC_SCLN, _______, _______, _______, _______, _______,
65KC_LCBR, KC_RCBR, KC_LPRN, KC_RPRN, KC_AT, _______, XXXXXXX, KC_EQL, KC_PLUS, KC_PERC,
66_______, KC_EXLM, KC_LBRC, KC_RBRC, _______, _______, _______, _______, _______, _______,
67 KC_VOLD, _______, _______, KC_VOLU
68 ),
69 [5] = LAYOUT_split_3x5_2(
70_______, _______, _______, _______, _______, _______, KC_F7, KC_F8, KC_F9, KC_F10,
71_______, XXXXXXX, CTL_ALT, _______, _______, _______, KC_F4, KC_F5, KC_F6, KC_F11,
72_______, _______, _______, _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_F12,
73 _______, _______, _______, _______
74 ),
75 [6] = LAYOUT_split_3x5_2(
76KC_PSLS, KC_7, KC_8, KC_9, KC_PPLS, _______, _______, _______, _______, _______,
77KC_0, KC_1, KC_2, KC_3, KC_PMNS, _______, _______, _______, XXXXXXX, _______,
78KC_PAST, KC_4, KC_5, KC_6, KC_PEQL, _______, _______, _______, _______, _______,
79 _______, _______, _______, _______
80 ),
81#undef MT_COMM
82#define MT_COMM RALT_T(KC_COMM)
83#undef MT_DOT
84#define MT_DOT RCTL_T(KC_DOT)
85 [7] = LAYOUT_split_3x5_2(
86_______, _______, KC_COLN, KC_ESC, _______, _______, _______, _______, _______, KC_DEL,
87_______, KC_PERC, KC_SLSH, KC_ENT, _______, DF(1), KC_LGUI, _______, _______, _______,
88_______, _______, _______, KC_EXLM, _______, DF(0), _______, MT_COMM, MT_DOT, RESET,
89 _______, KC_TAB, XXXXXXX, _______
90 )
91};
92
diff --git a/keyboards/steal_this_keyboard/readme.md b/keyboards/steal_this_keyboard/readme.md
new file mode 100644
index 000000000..395487f7b
--- /dev/null
+++ b/keyboards/steal_this_keyboard/readme.md
@@ -0,0 +1,11 @@
1# steal this keyboard!
2
3A split 34 keys column staggered keyboard named and decorated after the System of a Down album Steal This Album. All PCB files are available on the [project's github page](https://github.com/obosob/steal_this_keyboard)
4
5* Keyboard Maintainer: [Obosob](https://github.com/obosob)
6
7Make examples for this keyboard (after setting up your build environment):
8
9 make steal_this_keyboard:default
10
11See 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).
diff --git a/keyboards/steal_this_keyboard/rules.mk b/keyboards/steal_this_keyboard/rules.mk
new file mode 100644
index 000000000..ce4d52156
--- /dev/null
+++ b/keyboards/steal_this_keyboard/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 = no # 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 = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21UNICODE_ENABLE = yes # Unicode
22BLUETOOTH_ENABLE = no # Enable Bluetooth
23AUDIO_ENABLE = no # Audio output
24SPLIT_KEYBOARD = yes # Use shared split_common code
diff --git a/keyboards/steal_this_keyboard/steal_this_keyboard.c b/keyboards/steal_this_keyboard/steal_this_keyboard.c
new file mode 100644
index 000000000..cd5ef5cdd
--- /dev/null
+++ b/keyboards/steal_this_keyboard/steal_this_keyboard.c
@@ -0,0 +1,16 @@
1/* Copyright 2021 Obosob <obosob@riseup.net>
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#include "steal_this_keyboard.h"
diff --git a/keyboards/steal_this_keyboard/steal_this_keyboard.h b/keyboards/steal_this_keyboard/steal_this_keyboard.h
new file mode 100644
index 000000000..af7204f54
--- /dev/null
+++ b/keyboards/steal_this_keyboard/steal_this_keyboard.h
@@ -0,0 +1,46 @@
1/* Copyright 2021 Obosob <obosob@riseup.net>
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 "quantum.h"
18
19/* This a shortcut to help you visually see your layout.
20 *
21 * The first section contains all of the arguments representing the physical
22 * layout of the board and position of the keys.
23 *
24 * The second converts the arguments into a two-dimensional array which
25 * represents the switch matrix.
26 */
27
28// readability
29#define ___ KC_NO
30
31#define LAYOUT_split_3x5_2( \
32 L01, L02, L03, L04, L05, R01, R02, R03, R04, R05, \
33 L06, L07, L08, L09, L10, R06, R07, R08, R09, R10, \
34 L11, L12, L13, L14, L15, R11, R12, R13, R14, R15, \
35 L16, L17, R16, R17 \
36 ) \
37 { \
38 { L01, L02, L03, L04, L05 }, \
39 { L06, L07, L08, L09, L10 }, \
40 { L11, L12, L13, L14, L15 }, \
41 { L16, L17, ___, ___ , ___}, \
42 { R01, R02, R03, R04, R05 }, \
43 { R06, R07, R08, R09, R10 }, \
44 { R11, R12, R13, R14, R15 }, \
45 { R16, R17, ___, ___, ___ } \
46 }