aboutsummaryrefslogtreecommitdiff
path: root/keyboards/spacetime
diff options
context:
space:
mode:
authorKyle Terry <kyle@kyleterry.com>2019-05-26 13:05:42 -0700
committerDrashna Jaelre <drashna@live.com>2019-05-26 13:05:42 -0700
commitdf73a81db8d21af8c2ac45229eb7873787312d6a (patch)
tree8b1c8e841fdbe9f0cec7d0aef4b068c443218832 /keyboards/spacetime
parent2f961265a147dbf568dcc86fad8123b2d02656bc (diff)
downloadqmk_firmware-df73a81db8d21af8c2ac45229eb7873787312d6a.tar.gz
qmk_firmware-df73a81db8d21af8c2ac45229eb7873787312d6a.zip
[Keyboard] adds spacetime keyboard (#5969)
* adds spacetime keyboard * removes custom tap and mod functions this commit replaces tap_key, control_key and shift_key with built-in tap_code16. * changes thumb layer and makes left palm key ralt
Diffstat (limited to 'keyboards/spacetime')
-rw-r--r--keyboards/spacetime/config.h245
-rw-r--r--keyboards/spacetime/info.json68
-rw-r--r--keyboards/spacetime/keymaps/default/config.h19
-rw-r--r--keyboards/spacetime/keymaps/default/keymap.c85
-rw-r--r--keyboards/spacetime/keymaps/default/readme.md1
-rw-r--r--keyboards/spacetime/keymaps/kyleterry/keymap.c151
-rw-r--r--keyboards/spacetime/keymaps/kyleterry/rules.mk1
-rw-r--r--keyboards/spacetime/readme.md6
-rw-r--r--keyboards/spacetime/rev1/rev1.c40
-rw-r--r--keyboards/spacetime/rev1/rev1.h48
-rw-r--r--keyboards/spacetime/rev1/rules.mk1
-rw-r--r--keyboards/spacetime/rev2/rev2.c44
-rw-r--r--keyboards/spacetime/rev2/rev2.h48
-rw-r--r--keyboards/spacetime/rev2/rules.mk1
-rw-r--r--keyboards/spacetime/rules.mk86
-rw-r--r--keyboards/spacetime/spacetime.c1
-rw-r--r--keyboards/spacetime/spacetime.h11
17 files changed, 856 insertions, 0 deletions
diff --git a/keyboards/spacetime/config.h b/keyboards/spacetime/config.h
new file mode 100644
index 000000000..26eb8dd26
--- /dev/null
+++ b/keyboards/spacetime/config.h
@@ -0,0 +1,245 @@
1/*
2Copyright 2019 Kyle Terry
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
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0x0A0C
25#define DEVICE_VER 0x4A1F
26#define MANUFACTURER Kyle Terry
27#define PRODUCT spacetime
28#define DESCRIPTION A split ortho keyboard with a 30 degree thumb cluster and support for oled
29
30/* key matrix size */
31#define MATRIX_ROWS 4*2
32#define MATRIX_COLS 7
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43*/
44#define MATRIX_ROW_PINS { D4, C6, D7, E6 }
45#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 }
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL*/
49#define DIODE_DIRECTION COL2ROW
50
51/*
52 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
53 */
54#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
55#define USE_SERIAL
56
57// #define BACKLIGHT_PIN B7
58// #define BACKLIGHT_BREATHING
59// #define BACKLIGHT_LEVELS 3
60
61// #define RGB_DI_PIN E2
62// #ifdef RGB_DI_PIN
63// #define RGBLED_NUM 16
64// #define RGBLIGHT_HUE_STEP 8
65// #define RGBLIGHT_SAT_STEP 8
66// #define RGBLIGHT_VAL_STEP 8
67// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
68// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
69// /*== all animations enable ==*/
70// #define RGBLIGHT_ANIMATIONS
71// /*== or choose animations ==*/
72// #define RGBLIGHT_EFFECT_BREATHING
73// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
74// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
75// #define RGBLIGHT_EFFECT_SNAKE
76// #define RGBLIGHT_EFFECT_KNIGHT
77// #define RGBLIGHT_EFFECT_CHRISTMAS
78// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
79// #define RGBLIGHT_EFFECT_RGB_TEST
80// #define RGBLIGHT_EFFECT_ALTERNATING
81// #endif
82
83/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
84#define DEBOUNCE 5
85
86/* define if matrix has ghost (lacks anti-ghosting diodes) */
87//#define MATRIX_HAS_GHOST
88
89/* number of backlight levels */
90
91/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
92#define LOCKING_SUPPORT_ENABLE
93/* Locking resynchronize hack */
94#define LOCKING_RESYNC_ENABLE
95
96/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
97 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
98 */
99// #define GRAVE_ESC_CTRL_OVERRIDE
100
101/*
102 * Force NKRO
103 *
104 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
105 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
106 * makefile for this to work.)
107 *
108 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
109 * until the next keyboard reset.
110 *
111 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
112 * fully operational during normal computer usage.
113 *
114 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
115 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
116 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
117 * power-up.
118 *
119 */
120//#define FORCE_NKRO
121
122/*
123 * Magic Key Options
124 *
125 * Magic keys are hotkey commands that allow control over firmware functions of
126 * the keyboard. They are best used in combination with the HID Listen program,
127 * found here: https://www.pjrc.com/teensy/hid_listen.html
128 *
129 * The options below allow the magic key functionality to be changed. This is
130 * useful if your keyboard/keypad is missing keys and you want magic key support.
131 *
132 */
133
134/* key combination for magic key command */
135/* defined by default; to change, uncomment and set to the combination you want */
136// #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
137
138/* control how magic key switches layers */
139//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
140//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
141//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
142
143/* override magic key keymap */
144//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
145//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
146//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
147//#define MAGIC_KEY_HELP1 H
148//#define MAGIC_KEY_HELP2 SLASH
149//#define MAGIC_KEY_DEBUG D
150//#define MAGIC_KEY_DEBUG_MATRIX X
151//#define MAGIC_KEY_DEBUG_KBD K
152//#define MAGIC_KEY_DEBUG_MOUSE M
153//#define MAGIC_KEY_VERSION V
154//#define MAGIC_KEY_STATUS S
155//#define MAGIC_KEY_CONSOLE C
156//#define MAGIC_KEY_LAYER0_ALT1 ESC
157//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
158//#define MAGIC_KEY_LAYER0 0
159//#define MAGIC_KEY_LAYER1 1
160//#define MAGIC_KEY_LAYER2 2
161//#define MAGIC_KEY_LAYER3 3
162//#define MAGIC_KEY_LAYER4 4
163//#define MAGIC_KEY_LAYER5 5
164//#define MAGIC_KEY_LAYER6 6
165//#define MAGIC_KEY_LAYER7 7
166//#define MAGIC_KEY_LAYER8 8
167//#define MAGIC_KEY_LAYER9 9
168//#define MAGIC_KEY_BOOTLOADER PAUSE
169//#define MAGIC_KEY_LOCK CAPS
170//#define MAGIC_KEY_EEPROM E
171//#define MAGIC_KEY_NKRO N
172//#define MAGIC_KEY_SLEEP_LED Z
173
174/*
175 * Feature disable options
176 * These options are also useful to firmware size reduction.
177 */
178
179/* disable debug print */
180//#define NO_DEBUG
181
182/* disable print */
183//#define NO_PRINT
184
185/* disable action features */
186//#define NO_ACTION_LAYER
187//#define NO_ACTION_TAPPING
188//#define NO_ACTION_ONESHOT
189//#define NO_ACTION_MACRO
190//#define NO_ACTION_FUNCTION
191
192/*
193 * MIDI options
194 */
195
196/* Prevent use of disabled MIDI features in the keymap */
197//#define MIDI_ENABLE_STRICT 1
198
199/* enable basic MIDI features:
200 - MIDI notes can be sent when in Music mode is on
201*/
202//#define MIDI_BASIC
203
204/* enable advanced MIDI features:
205 - MIDI notes can be added to the keymap
206 - Octave shift and transpose
207 - Virtual sustain, portamento, and modulation wheel
208 - etc.
209*/
210//#define MIDI_ADVANCED
211
212/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
213//#define MIDI_TONE_KEYCODE_OCTAVES 1
214
215/*
216 * HD44780 LCD Display Configuration
217 */
218/*
219#define LCD_LINES 2 //< number of visible lines of the display
220#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
221
222#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
223
224#if LCD_IO_MODE
225#define LCD_PORT PORTB //< port for the LCD lines
226#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
227#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
228#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
229#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
230#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
231#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
232#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
233#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
234#define LCD_RS_PORT LCD_PORT //< port for RS line
235#define LCD_RS_PIN 3 //< pin for RS line
236#define LCD_RW_PORT LCD_PORT //< port for RW line
237#define LCD_RW_PIN 2 //< pin for RW line
238#define LCD_E_PORT LCD_PORT //< port for Enable line
239#define LCD_E_PIN 1 //< pin for Enable line
240#endif
241*/
242
243/* Bootmagic Lite key configuration */
244// #define BOOTMAGIC_LITE_ROW 0
245// #define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/spacetime/info.json b/keyboards/spacetime/info.json
new file mode 100644
index 000000000..3cb4414ed
--- /dev/null
+++ b/keyboards/spacetime/info.json
@@ -0,0 +1,68 @@
1{
2 "keyboard_name": "spacetime",
3 "url": "https://github.com/kyleterry/spacetime-keyboard",
4 "maintainer": "qmk",
5 "width": 14,
6 "height": 4,
7 "layouts": {
8 "LAYOUT": {
9 "key_count": 50,
10 "layout": [
11 {"label":"L00", "x":0, "y":0},
12 {"label":"L01", "x":1, "y":0},
13 {"label":"L02", "x":2, "y":0},
14 {"label":"L03", "x":3, "y":0},
15 {"label":"L04", "x":4, "y":0},
16 {"label":"L05", "x":5, "y":0},
17 {"label":"L06", "x":6, "y":0},
18 {"label":"R00", "x":7, "y":0},
19 {"label":"R01", "x":8, "y":0},
20 {"label":"R02", "x":9, "y":0},
21 {"label":"R03", "x":10, "y":0},
22 {"label":"R04", "x":11, "y":0},
23 {"label":"R05", "x":12, "y":0},
24 {"label":"R06", "x":13, "y":0},
25
26 {"label":"L10", "x":0, "y":1},
27 {"label":"L11", "x":1, "y":1},
28 {"label":"L12", "x":2, "y":1},
29 {"label":"L13", "x":3, "y":1},
30 {"label":"L14", "x":4, "y":1},
31 {"label":"L15", "x":5, "y":1},
32 {"label":"L16", "x":6, "y":1},
33 {"label":"R10", "x":7, "y":1},
34 {"label":"R11", "x":8, "y":1},
35 {"label":"R12", "x":9, "y":1},
36 {"label":"R13", "x":10, "y":1},
37 {"label":"R14", "x":11, "y":1},
38 {"label":"R15", "x":12, "y":1},
39 {"label":"R16", "x":13, "y":1},
40
41 {"label":"L20", "x":0, "y":2},
42 {"label":"L21", "x":1, "y":2},
43 {"label":"L22", "x":2, "y":2},
44 {"label":"L23", "x":3, "y":2},
45 {"label":"L24", "x":4, "y":2},
46 {"label":"L25", "x":5, "y":2},
47 {"label":"L26", "x":6, "y":2},
48 {"label":"R20", "x":7, "y":2},
49 {"label":"R21", "x":8, "y":2},
50 {"label":"R22", "x":9, "y":2},
51 {"label":"R23", "x":10, "y":2},
52 {"label":"R24", "x":11, "y":2},
53 {"label":"R25", "x":12, "y":2},
54 {"label":"R26", "x":13, "y":2},
55
56 {"label":"L30", "x":0, "y":3, "w":1},
57 {"label":"L34", "x":4, "y":3, "w":1},
58 {"label":"L35", "x":5, "y":3, "w":2},
59 {"label":"L36", "x":6, "y":3, "w":2},
60 {"label":"R30", "x":7, "y":3, "w":2},
61 {"label":"R31", "x":8, "y":3, "w":2},
62 {"label":"R32", "x":9, "y":3, "w":1},
63 {"label":"R36", "x":13, "y":3, "w":1}
64 ]
65 }
66 }
67}
68
diff --git a/keyboards/spacetime/keymaps/default/config.h b/keyboards/spacetime/keymaps/default/config.h
new file mode 100644
index 000000000..26a960039
--- /dev/null
+++ b/keyboards/spacetime/keymaps/default/config.h
@@ -0,0 +1,19 @@
1/* Copyright 2019 Kyle Terry
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#pragma once
18
19// place overrides here
diff --git a/keyboards/spacetime/keymaps/default/keymap.c b/keyboards/spacetime/keymaps/default/keymap.c
new file mode 100644
index 000000000..ac2f5098f
--- /dev/null
+++ b/keyboards/spacetime/keymaps/default/keymap.c
@@ -0,0 +1,85 @@
1/* Copyright 2019 Kyle Terry
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 QMK_KEYBOARD_H
17
18#define LOWER MO(_LOWER)
19#define RAISE MO(_RAISE)
20
21enum layers {
22 _QWERTY,
23 _LOWER,
24 _RAISE,
25 _ADJUST
26};
27
28/* layer template:
29 * [_LAYER] = LAYOUT(
30 * _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
31 * _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
32 * _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
33 * _______, _______, _______, _______, _______, _______, _______, _______
34 * ),
35 */
36
37const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
38 [_QWERTY] = LAYOUT(
39 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LCTL, KC_RCTL, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
40 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LALT, KC_RALT, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
41 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LGUI, KC_APP, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
42 KC_LCTL, KC_LGUI, KC_SPC, LOWER, RAISE, KC_SPC, KC_RGUI, KC_RCTL
43 ),
44
45 [_LOWER] = LAYOUT(
46 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_MNXT,
49 _______, _______, _______, _______, _______, _______, _______, _______
50 ),
51
52 [_RAISE] = LAYOUT(
53 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
54 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
55 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU,
56 _______, _______, _______, _______, _______, _______, _______, _______
57 ),
58
59 [_ADJUST] = LAYOUT(
60 _______, _______, KC_PGUP, _______, _______, _______, _______, _______, _______, _______, KC_INS, _______, KC_PSCR, _______,
61 _______, KC_HOME, KC_PGDN, KC_END, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______,
62 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
63 _______, _______, _______, _______, _______, _______, _______, _______
64 )
65};
66
67uint32_t layer_state_set_user(uint32_t state) {
68 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
69}
70
71bool process_record_user(uint16_t keycode, keyrecord_t *record) {
72 return true;
73}
74
75void matrix_init_user(void) {
76
77}
78
79void matrix_scan_user(void) {
80
81}
82
83void led_set_user(uint8_t usb_led) {
84
85}
diff --git a/keyboards/spacetime/keymaps/default/readme.md b/keyboards/spacetime/keymaps/default/readme.md
new file mode 100644
index 000000000..bcc95f4b7
--- /dev/null
+++ b/keyboards/spacetime/keymaps/default/readme.md
@@ -0,0 +1 @@
# Spacetime Default Keymap
diff --git a/keyboards/spacetime/keymaps/kyleterry/keymap.c b/keyboards/spacetime/keymaps/kyleterry/keymap.c
new file mode 100644
index 000000000..32fbab5e0
--- /dev/null
+++ b/keyboards/spacetime/keymaps/kyleterry/keymap.c
@@ -0,0 +1,151 @@
1/* Copyright 2019 Kyle Terry
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 QMK_KEYBOARD_H
17
18#define LOWER MO(_LOWER)
19#define RAISE MO(_RAISE)
20#define NUM MO(_NUM)
21#define CTL_ESC CTL_T(KC_ESC)
22#define OS_LGUI OSM (MOD_LGUI)
23#define SGAME TO(_GAMING)
24#define SQWER TO(_QWERTY)
25
26enum layers {
27 _QWERTY,
28 _GAMING,
29 _LOWER,
30 _RAISE,
31 _ADJUST,
32 _NUM
33};
34
35enum {
36 /* tap dance for raise and lower layer switching */
37 TD_RL = 0,
38 /* tap dance for common cording */
39 TD_C = 1,
40 /* tap dance for media keys */
41 TD_MD = 2,
42};
43
44/* layer template:
45 * [_LAYER] = LAYOUT(
46 * _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 * _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 * _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 * _______, _______, _______, _______, _______, _______, _______, _______
50 * ),
51 */
52
53const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
54 [_QWERTY] = LAYOUT(
55 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LCTL, TD(TD_C),KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
56 CTL_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LALT, KC_ENT, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
57 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, NUM, OS_LGUI, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
58 KC_LCTL, OS_LGUI, KC_SPC, LOWER, RAISE, KC_SPC, OS_LGUI, KC_RALT
59 ),
60
61 [_GAMING] = LAYOUT(
62 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LCTL, TD(TD_C),KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
63 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_ESC, KC_ENT, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
64 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, NUM, OS_LGUI, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
65 KC_LALT, KC_V, KC_SPC, LOWER, RAISE, KC_SPC, OS_LGUI, KC_RALT
66 ),
67
68 [_LOWER] = LAYOUT(
69 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_LPRN, KC_RPRN, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
70 _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
71 _______, _______, _______, _______, _______, _______, KC_LCBR, KC_RCBR, _______, _______, _______, _______, TD(TD_MD), KC_MNXT,
72 _______, _______, _______, _______, _______, _______, _______, _______
73 ),
74
75 [_RAISE] = LAYOUT(
76 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
77 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
78 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU,
79 _______, _______, _______, _______, _______, _______, _______, _______
80 ),
81
82 [_ADJUST] = LAYOUT(
83 _______, _______, KC_PGUP, _______, _______, _______, SQWER, _______, _______, _______, KC_INS, _______, KC_PSCR, _______,
84 _______, KC_HOME, KC_PGDN, KC_END, _______, _______, SGAME, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______,
85 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
86 _______, _______, _______, _______, _______, _______, _______, _______
87 ),
88
89 [_NUM] = LAYOUT(
90 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_ASTR,
91 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_4, KC_5, KC_6, KC_MINS,
92 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOT, KC_1, KC_2, KC_3, KC_PLUS,
93 _______, _______, _______, _______, _______, _______, _______, KC_0
94 )
95};
96
97uint32_t layer_state_set_user(uint32_t state) {
98 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
99}
100
101bool process_record_user(uint16_t keycode, keyrecord_t *record) {
102 return true;
103}
104
105void matrix_init_user(void) {
106
107}
108
109void matrix_scan_user(void) {
110
111}
112
113void led_set_user(uint8_t usb_led) {
114
115}
116
117void td_common(qk_tap_dance_state_t *state, void *user_data) {
118 switch (state->count) {
119 case 1:
120 /* this case handles ctrl+o which is my tmux prefix
121 */
122 tap_code16(C(KC_O));
123 reset_tap_dance(state);
124 break;
125 case 2:
126 /* this case handles shift+insert which is a common way
127 * for me to paste text in linux
128 */
129 tap_code16(S(KC_INS));
130 reset_tap_dance(state);
131 break;
132 }
133}
134
135void td_media(qk_tap_dance_state_t *state, void *user_data) {
136 switch (state->count) {
137 case 1:
138 tap_code16(KC_MPLY);
139 reset_tap_dance(state);
140 break;
141 case 2:
142 tap_code16(KC_MUTE);
143 reset_tap_dance(state);
144 break;
145 }
146}
147
148qk_tap_dance_action_t tap_dance_actions[] = {
149 [TD_C] = ACTION_TAP_DANCE_FN(td_common),
150 [TD_MD] = ACTION_TAP_DANCE_FN(td_media),
151};
diff --git a/keyboards/spacetime/keymaps/kyleterry/rules.mk b/keyboards/spacetime/keymaps/kyleterry/rules.mk
new file mode 100644
index 000000000..31e0fcf29
--- /dev/null
+++ b/keyboards/spacetime/keymaps/kyleterry/rules.mk
@@ -0,0 +1 @@
TAP_DANCE_ENABLE=yes
diff --git a/keyboards/spacetime/readme.md b/keyboards/spacetime/readme.md
new file mode 100644
index 000000000..94108baa2
--- /dev/null
+++ b/keyboards/spacetime/readme.md
@@ -0,0 +1,6 @@
1# Spacetime Keyboard
2
3A small split-design ortholinear board with a 30 degree thumb cluster and
4a breakaway palm key on each side.
5
6PCB can be found on [GitHub](https://github.com/kyleterry/spacetime-keyboard)
diff --git a/keyboards/spacetime/rev1/rev1.c b/keyboards/spacetime/rev1/rev1.c
new file mode 100644
index 000000000..6fde622c2
--- /dev/null
+++ b/keyboards/spacetime/rev1/rev1.c
@@ -0,0 +1,40 @@
1/* Copyright 2019 Kyle Terry
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 "rev1.h"
17
18bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
19 return process_record_user(keycode, record);
20}
21
22void matrix_init_kb(void) {
23 // put your keyboard start-up code here
24 // runs once when the firmware starts up
25
26 matrix_init_user();
27}
28
29void matrix_scan_kb(void) {
30 // put your looping keyboard code here
31 // runs every cycle (a lot)
32
33 matrix_scan_user();
34}
35
36void led_set_kb(uint8_t usb_led) {
37 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
38
39 led_set_user(usb_led);
40}
diff --git a/keyboards/spacetime/rev1/rev1.h b/keyboards/spacetime/rev1/rev1.h
new file mode 100644
index 000000000..dd5420456
--- /dev/null
+++ b/keyboards/spacetime/rev1/rev1.h
@@ -0,0 +1,48 @@
1/* Copyright 2019 Kyle Terry
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#pragma once
17
18#include "quantum.h"
19#define ___ KC_NO
20
21/* This a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT( \
30 L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \
31 L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
32 L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
33 L30, L34, L35, L36, R30, R31, R32, R36 \
34) { \
35 { L00, L01, L02, L03, L04, L05, L06 }, \
36 { L10, L11, L12, L13, L14, L15, L16 }, \
37 { L20, L21, L22, L23, L24, L25, L26 }, \
38 { L30, ___, ___, ___, L34, L35, L36 }, \
39\
40 { R06, R05, R04, R03, R02, R01, R00 }, \
41 { R16, R15, R14, R13, R12, R11, R10 }, \
42 { R26, R25, R24, R23, R22, R21, R20 }, \
43 { R36, ___, ___, ___, R32, R31, R30 } \
44}
45
46#ifdef USE_I2C
47 #error "I2C not Supported"
48#endif
diff --git a/keyboards/spacetime/rev1/rules.mk b/keyboards/spacetime/rev1/rules.mk
new file mode 100644
index 000000000..b595964f7
--- /dev/null
+++ b/keyboards/spacetime/rev1/rules.mk
@@ -0,0 +1 @@
OLED_DRIVER_ENABLE = no
diff --git a/keyboards/spacetime/rev2/rev2.c b/keyboards/spacetime/rev2/rev2.c
new file mode 100644
index 000000000..6b62c071e
--- /dev/null
+++ b/keyboards/spacetime/rev2/rev2.c
@@ -0,0 +1,44 @@
1/* Copyright 2019 Kyle Terry
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 "rev2.h"
17
18bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
19#ifdef SSD1306OLED
20 return process_record_gfx(keycode,record) && process_record_user(keycode, record);
21#else
22 return process_record_user(keycode, record);
23#endif
24}
25
26void matrix_init_kb(void) {
27 // put your keyboard start-up code here
28 // runs once when the firmware starts up
29
30 matrix_init_user();
31}
32
33void matrix_scan_kb(void) {
34 // put your looping keyboard code here
35 // runs every cycle (a lot)
36
37 matrix_scan_user();
38}
39
40void led_set_kb(uint8_t usb_led) {
41 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
42
43 led_set_user(usb_led);
44}
diff --git a/keyboards/spacetime/rev2/rev2.h b/keyboards/spacetime/rev2/rev2.h
new file mode 100644
index 000000000..dd5420456
--- /dev/null
+++ b/keyboards/spacetime/rev2/rev2.h
@@ -0,0 +1,48 @@
1/* Copyright 2019 Kyle Terry
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#pragma once
17
18#include "quantum.h"
19#define ___ KC_NO
20
21/* This a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT( \
30 L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \
31 L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
32 L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
33 L30, L34, L35, L36, R30, R31, R32, R36 \
34) { \
35 { L00, L01, L02, L03, L04, L05, L06 }, \
36 { L10, L11, L12, L13, L14, L15, L16 }, \
37 { L20, L21, L22, L23, L24, L25, L26 }, \
38 { L30, ___, ___, ___, L34, L35, L36 }, \
39\
40 { R06, R05, R04, R03, R02, R01, R00 }, \
41 { R16, R15, R14, R13, R12, R11, R10 }, \
42 { R26, R25, R24, R23, R22, R21, R20 }, \
43 { R36, ___, ___, ___, R32, R31, R30 } \
44}
45
46#ifdef USE_I2C
47 #error "I2C not Supported"
48#endif
diff --git a/keyboards/spacetime/rev2/rules.mk b/keyboards/spacetime/rev2/rules.mk
new file mode 100644
index 000000000..c58266213
--- /dev/null
+++ b/keyboards/spacetime/rev2/rules.mk
@@ -0,0 +1 @@
OLED_DRIVER_ENABLE = yes
diff --git a/keyboards/spacetime/rules.mk b/keyboards/spacetime/rules.mk
new file mode 100644
index 000000000..62e8f9955
--- /dev/null
+++ b/keyboards/spacetime/rules.mk
@@ -0,0 +1,86 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection
42# Teensy halfkay
43# Pro Micro caterina
44# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu
47# atmega32a bootloadHID
48BOOTLOADER = caterina
49
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
59
60
61# Build Options
62# change yes to no to disable
63#
64BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
65MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
66EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
67CONSOLE_ENABLE = yes # Console for debug(+400)
68COMMAND_ENABLE = no # Commands for debug and configuration
69# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
70SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
71# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
72NKRO_ENABLE = no # USB Nkey Rollover
73BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
74RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
75MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
76UNICODE_ENABLE = no # Unicode
77BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
78AUDIO_ENABLE = no # Audio output on port C6
79FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
80HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
81OLED_DRIVER_ENABLE = no
82
83# Enable generic behavior for split boards
84SPLIT_KEYBOARD = yes
85
86DEFAULT_FOLDER = spacetime/rev1
diff --git a/keyboards/spacetime/spacetime.c b/keyboards/spacetime/spacetime.c
new file mode 100644
index 000000000..7db11f1bc
--- /dev/null
+++ b/keyboards/spacetime/spacetime.c
@@ -0,0 +1 @@
#include "spacetime.h"
diff --git a/keyboards/spacetime/spacetime.h b/keyboards/spacetime/spacetime.h
new file mode 100644
index 000000000..0235c2b25
--- /dev/null
+++ b/keyboards/spacetime/spacetime.h
@@ -0,0 +1,11 @@
1#pragma once
2
3#ifdef KEYBOARD_spacetime_rev1
4 #include "rev1.h"
5#endif
6
7#ifdef KEYBOARD_spacetime_rev2
8 #include "rev2.h"
9#endif
10
11#include "quantum.h"