aboutsummaryrefslogtreecommitdiff
path: root/keyboards/spacey
diff options
context:
space:
mode:
authorVanilla <77503059+vanillakeyboards@users.noreply.github.com>2021-08-12 11:50:12 -0400
committerGitHub <noreply@github.com>2021-08-12 08:50:12 -0700
commit74aff52bff3800aee75611bd444e1f85f2877bb6 (patch)
treee641623a0790f952a3b66fd3bc0937580cd67b96 /keyboards/spacey
parent7ee2b0f1eea867da7b03a6acd4e5e0774cabc81d (diff)
downloadqmk_firmware-74aff52bff3800aee75611bd444e1f85f2877bb6.tar.gz
qmk_firmware-74aff52bff3800aee75611bd444e1f85f2877bb6.zip
[Keyboard] Add Spacey keyboard firmware (#12599)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: tfjones24 <tannerfj24@gmail.com>
Diffstat (limited to 'keyboards/spacey')
-rw-r--r--keyboards/spacey/config.h110
-rw-r--r--keyboards/spacey/info.json87
-rw-r--r--keyboards/spacey/keymaps/default/keymap.c47
-rw-r--r--keyboards/spacey/keymaps/default/readme.md1
-rw-r--r--keyboards/spacey/readme.md19
-rw-r--r--keyboards/spacey/rules.mk23
-rw-r--r--keyboards/spacey/spacey.c29
-rw-r--r--keyboards/spacey/spacey.h41
8 files changed, 357 insertions, 0 deletions
diff --git a/keyboards/spacey/config.h b/keyboards/spacey/config.h
new file mode 100644
index 000000000..58249d4f1
--- /dev/null
+++ b/keyboards/spacey/config.h
@@ -0,0 +1,110 @@
1/*
2Copyright 2021 vanilla
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 0x0000
25#define DEVICE_VER 0x0001
26#define MANUFACTURER vanilla
27#define PRODUCT spacey
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 14
32
33
34#define ENCODERS_PAD_A { D0 }
35#define ENCODERS_PAD_B { D1 }
36#define ENCODER_RESOLUTION 4
37
38/*
39 * Keyboard Matrix Assignments
40 *
41 * Change this to how you wired your keyboard
42 * COLS: AVR pins used for columns, left to right
43 * ROWS: AVR pins used for rows, top to bottom
44 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
45 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
46 */
47#define MATRIX_ROW_PINS { D4, C6, F6, F5, F4 }
48#define MATRIX_COL_PINS { D5, B7, B5, B4, E6, D7, C7, B3, B2, B6, F0, F1, B1, F7 }
49
50/* COL2ROW, ROW2COL*/
51#define DIODE_DIRECTION COL2ROW
52
53
54/*
55 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
56 */
57#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
58
59//#define LED_NUM_LOCK_PIN B0
60//#define LED_CAPS_LOCK_PIN B1
61//#define LED_SCROLL_LOCK_PIN B2
62//#define LED_COMPOSE_PIN B3
63//#define LED_KANA_PIN B4
64
65//#define BACKLIGHT_PIN B7
66//#define BACKLIGHT_LEVELS 3
67//#define BACKLIGHT_BREATHING
68
69//#define RGB_DI_PIN E2
70//#ifdef RGB_DI_PIN
71//# define RGBLED_NUM 16
72//# define RGBLIGHT_HUE_STEP 8
73//# define RGBLIGHT_SAT_STEP 8
74//# define RGBLIGHT_VAL_STEP 8
75//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
76//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
77/*== all animations enable ==*/
78//# define RGBLIGHT_ANIMATIONS
79/*== or choose animations ==*/
80//# define RGBLIGHT_EFFECT_BREATHING
81//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
82//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
83//# define RGBLIGHT_EFFECT_SNAKE
84//# define RGBLIGHT_EFFECT_KNIGHT
85//# define RGBLIGHT_EFFECT_CHRISTMAS
86//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
87//# define RGBLIGHT_EFFECT_RGB_TEST
88//# define RGBLIGHT_EFFECT_ALTERNATING
89/*== customize breathing effect ==*/
90/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
91//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
92/*==== use exp() and sin() ====*/
93//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
94//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
95//#endif
96
97/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
98#define DEBOUNCE 5
99
100/* define if matrix has ghost (lacks anti-ghosting diodes) */
101//#define MATRIX_HAS_GHOST
102
103
104/* disable these deprecated features by default */
105#define NO_ACTION_MACRO
106#define NO_ACTION_FUNCTION
107
108/* Bootmagic Lite key configuration */
109//#define BOOTMAGIC_LITE_ROW 0
110//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/spacey/info.json b/keyboards/spacey/info.json
new file mode 100644
index 000000000..39a4e46b5
--- /dev/null
+++ b/keyboards/spacey/info.json
@@ -0,0 +1,87 @@
1{
2 "keyboard_name": "spacey",
3 "url": "",
4 "maintainer": "vanilla",
5 "width": 14,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"k00", "x":0, "y":0},
11 {"label":"k01", "x":1, "y":0},
12 {"label":"k02", "x":2, "y":0},
13 {"label":"k03", "x":3, "y":0},
14 {"label":"k04", "x":4, "y":0},
15 {"label":"k05", "x":5, "y":0},
16 {"label":"k06", "x":6, "y":0},
17 {"label":"k07", "x":7, "y":0},
18 {"label":"k08", "x":8, "y":0},
19 {"label":"k09", "x":9, "y":0},
20 {"label":"k0A", "x":10, "y":0},
21 {"label":"k0B", "x":11, "y":0},
22 {"label":"k0C", "x":12, "y":0},
23 {"label":"k0D", "x":13, "y":0},
24
25 {"label":"k10", "x":0, "y":1},
26 {"label":"k11", "x":1, "y":1},
27 {"label":"k12", "x":2, "y":1},
28 {"label":"k13", "x":3, "y":1},
29 {"label":"k14", "x":4, "y":1},
30 {"label":"k15", "x":5, "y":1},
31 {"label":"k16", "x":6, "y":1},
32 {"label":"k17", "x":7, "y":1},
33 {"label":"k18", "x":8, "y":1},
34 {"label":"k19", "x":9, "y":1},
35 {"label":"k1A", "x":10, "y":1},
36 {"label":"k1B", "x":11, "y":1},
37 {"label":"k1C", "x":12, "y":1},
38 {"label":"k1D", "x":13, "y":1},
39
40 {"label":"k20", "x":0, "y":2},
41 {"label":"k21", "x":1, "y":2},
42 {"label":"k22", "x":2, "y":2},
43 {"label":"k23", "x":3, "y":2},
44 {"label":"k24", "x":4, "y":2},
45 {"label":"k25", "x":5, "y":2},
46 {"label":"k26", "x":6, "y":2},
47 {"label":"k27", "x":7, "y":2},
48 {"label":"k28", "x":8, "y":2},
49 {"label":"k29", "x":9, "y":2},
50 {"label":"k2A", "x":10, "y":2},
51 {"label":"k2B", "x":11, "y":2},
52 {"label":"k2C", "x":12, "y":2},
53 {"label":"k2D", "x":13, "y":2},
54
55 {"label":"k30", "x":0, "y":3},
56 {"label":"k31", "x":1, "y":3},
57 {"label":"k32", "x":2, "y":3},
58 {"label":"k33", "x":3, "y":3},
59 {"label":"k34", "x":4, "y":3},
60 {"label":"k35", "x":5, "y":3},
61 {"label":"k36", "x":6, "y":3},
62 {"label":"k37", "x":7, "y":3},
63 {"label":"k38", "x":8, "y":3},
64 {"label":"k39", "x":9, "y":3},
65 {"label":"k3A", "x":10, "y":3},
66 {"label":"k3B", "x":11, "y":3},
67 {"label":"k3C", "x":12, "y":3},
68 {"label":"k3D", "x":13, "y":3},
69
70 {"label":"k40", "x":0, "y":4},
71 {"label":"k41", "x":1, "y":4},
72 {"label":"k42", "x":2, "y":4},
73 {"label":"k43", "x":3, "y":4},
74 {"label":"k44", "x":4, "y":4},
75 {"label":"k45", "x":5, "y":4},
76
77 {"label":"k47", "x":7, "y":4},
78 {"label":"k48", "x":8, "y":4},
79
80 {"label":"k4A", "x":10, "y":4},
81 {"label":"k4B", "x":11, "y":4},
82 {"label":"k4C", "x":12, "y":4},
83 {"label":"k4D", "x":13, "y":4}
84 ]
85 }
86 }
87}
diff --git a/keyboards/spacey/keymaps/default/keymap.c b/keyboards/spacey/keymaps/default/keymap.c
new file mode 100644
index 000000000..4d08a279e
--- /dev/null
+++ b/keyboards/spacey/keymaps/default/keymap.c
@@ -0,0 +1,47 @@
1/* Copyright 2021 vanilla
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#define FN MO(_FN)
18
19// Defines names for use in layer keycodes and the keymap
20enum layer_names {
21 _BASE = 0,
22 _FN
23};
24
25// Defines the keycodes used by our macros in process_record_user
26enum custom_keycodes {
27 QMKBEST = SAFE_RANGE,
28 QMKURL
29};
30
31const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
32 /* Base */
33 [_BASE] = LAYOUT(
34 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
35 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
36 KC_CLCK,KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_UP,
37 KC_LSFT,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT,KC_SLSH,KC_RSFT, KC_LEFT, KC_DOWN,
38 KC_LCTL, KC_LGUI, FN, KC_MUTE, KC_LALT, KC_SPC, KC_NO, KC_BSPC, KC_DEL, KC_NO, KC_RALT, KC_RGUI, KC_RCTL, KC_RGHT
39 ),
40 [_FN] = LAYOUT(
41 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_BSPC,
42 KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL,
43 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_ENT, KC_MS_U,
44 KC_LSFT,KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_COMM,KC_DOT,KC_SLSH,KC_RSFT, KC_MS_L, KC_MS_D,
45 KC_LCTL, KC_LGUI, KC_NO, KC_ESC, KC_LALT, KC_SPC, KC_NO, KC_BSPC, KC_RALT, KC_NO, KC_APP, KC_RGUI, KC_RCTL, KC_MS_R
46 )
47};
diff --git a/keyboards/spacey/keymaps/default/readme.md b/keyboards/spacey/keymaps/default/readme.md
new file mode 100644
index 000000000..808ab6826
--- /dev/null
+++ b/keyboards/spacey/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for spacey
diff --git a/keyboards/spacey/readme.md b/keyboards/spacey/readme.md
new file mode 100644
index 000000000..e61585269
--- /dev/null
+++ b/keyboards/spacey/readme.md
@@ -0,0 +1,19 @@
1# spacey
2
3![spacey](https://i.imgur.com/Dzon2hbh.jpeg)
4
5Spacey, designed by Vanilla Keyboards is a 45/65% keyboard with a little personality. Hosting ortholinear alphas with traditional modifiers, diamond shaped arrows, rotary encoder, and a couple optional spacebars at the top of the board, it's a balance between functional and unique.
6
7* Keyboard Maintainer: [vanilla](https://github.com/vanillakeyboards)
8* Hardware Supported: Elite C, Spacey PCB plates and acrylic drop_in case
9* Hardware Availability: https://p3dstore.com/collections/ended-group-buys/products/spacey?variant=37742593147064 and https://keeb.io/products/elite-c-low-profile-version-usb-c-pro-micro-replacement-atmega32u4
10
11Make example for this keyboard (after setting up your build environment):
12
13 make spacey:default
14
15Flashing example for this keyboard:
16
17 make spacey:default:flash
18
19See 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/spacey/rules.mk b/keyboards/spacey/rules.mk
new file mode 100644
index 000000000..fb12719ce
--- /dev/null
+++ b/keyboards/spacey/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # 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
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes
diff --git a/keyboards/spacey/spacey.c b/keyboards/spacey/spacey.c
new file mode 100644
index 000000000..32f1e4dd9
--- /dev/null
+++ b/keyboards/spacey/spacey.c
@@ -0,0 +1,29 @@
1/* Copyright 2021 vanilla
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 "spacey.h"
18
19bool encoder_update_kb(uint8_t index, bool clockwise){
20 if (!encoder_update_user(index, clockwise)) { return false; }
21 if (index == 0) {
22 if(clockwise) {
23 tap_code(KC_VOLD);
24 } else {
25 tap_code(KC_VOLU);
26 }
27 }
28 return true;
29}
diff --git a/keyboards/spacey/spacey.h b/keyboards/spacey/spacey.h
new file mode 100644
index 000000000..5a288fae8
--- /dev/null
+++ b/keyboards/spacey/spacey.h
@@ -0,0 +1,41 @@
1/* Copyright 2021 vanilla
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#include "quantum.h"
20
21/* This is 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 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, \
31 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, \
32 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2D, \
33 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, \
34 k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4A, k4B, k4C, k4D \
35) { \
36 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D }, \
37 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D }, \
38 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2D }, \
39 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D }, \
40 { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4A, k4B, k4C, k4D } \
41}