aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keyboardio
diff options
context:
space:
mode:
authorEvan Travers <evantravers@gmail.com>2020-10-09 01:17:25 -0500
committerGitHub <noreply@github.com>2020-10-08 23:17:25 -0700
commitcd0e32ff9ec5d33d911832c1ea716acb900b564d (patch)
tree63cbbe387210a827094e312a8dcd744910d53c32 /keyboards/keyboardio
parent7229997e7d7e3519c09774020c7f3979541ea761 (diff)
downloadqmk_firmware-cd0e32ff9ec5d33d911832c1ea716acb900b564d.tar.gz
qmk_firmware-cd0e32ff9ec5d33d911832c1ea716acb900b564d.zip
[Keyboard] Keyboardio Atreus (#10570)
* Initial support for the Keyboardio Atreus Many thanks to noroadsleft for reviews & suggestions. * Add QMK Configurator layout support * Update the fn layer of the Keyboardio Atreus to the new layout. Previously this was using the Classic Atreus layout. * Implement noroadleft's changes from #8492 * Follow Erovia's recommendations qmk/qmk_firmware#8492 * Correct braces * Change correct rules.mk * Remove comments * Fix BOOTMAGIC_ENABLE I had edited the wrong file earlier. * Remove comment * Updates rules.mk Thank you noroadsleft. Co-authored-by: Gergely Nagy <algernon@keyboard.io> Co-authored-by: Phil Hagelberg <phil@hagelb.org>
Diffstat (limited to 'keyboards/keyboardio')
-rw-r--r--keyboards/keyboardio/atreus/atreus.c17
-rw-r--r--keyboards/keyboardio/atreus/atreus.h32
-rw-r--r--keyboards/keyboardio/atreus/config.h81
-rw-r--r--keyboards/keyboardio/atreus/info.json57
-rw-r--r--keyboards/keyboardio/atreus/keymaps/default/keymap.c43
-rw-r--r--keyboards/keyboardio/atreus/readme.md31
-rw-r--r--keyboards/keyboardio/atreus/rules.mk24
7 files changed, 285 insertions, 0 deletions
diff --git a/keyboards/keyboardio/atreus/atreus.c b/keyboards/keyboardio/atreus/atreus.c
new file mode 100644
index 000000000..0ad715658
--- /dev/null
+++ b/keyboards/keyboardio/atreus/atreus.c
@@ -0,0 +1,17 @@
1/* Copyright (C) 2019, 2020 Keyboard.io, Inc
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 "atreus.h"
diff --git a/keyboards/keyboardio/atreus/atreus.h b/keyboards/keyboardio/atreus/atreus.h
new file mode 100644
index 000000000..b03276ff6
--- /dev/null
+++ b/keyboards/keyboardio/atreus/atreus.h
@@ -0,0 +1,32 @@
1/* Copyright (C) 2019, 2020 Keyboard.io, Inc
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 XXX KC_NO
20
21#define LAYOUT( \
22 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, \
23 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, \
24 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
25 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b \
26) \
27{ \
28 { k00, k01, k02, k03, k04, XXX, XXX, k05, k06, k07, k08, k09 }, \
29 { k10, k11, k12, k13, k14, XXX, XXX, k15, k16, k17, k18, k19 }, \
30 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \
31 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b } \
32}
diff --git a/keyboards/keyboardio/atreus/config.h b/keyboards/keyboardio/atreus/config.h
new file mode 100644
index 000000000..fb3a48e58
--- /dev/null
+++ b/keyboards/keyboardio/atreus/config.h
@@ -0,0 +1,81 @@
1/* Copyright (C) 2019, 2020 Keyboard.io, Inc
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 "config_common.h"
20
21/* USB Device descriptor parameter */
22
23#define VENDOR_ID 0x1209
24#define PRODUCT_ID 0x2303
25#define DEVICE_VER 0x0000
26#define MANUFACTURER Keyboardio
27#define PRODUCT Atreus
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 12
32
33/* define if matrix has ghost */
34//#define MATRIX_HAS_GHOST
35
36/* number of backlight levels */
37//#define BACKLIGHT_LEVELS 3
38
39/* Set 0 if debouncing isn't needed */
40#define DEBOUNCE 5
41
42/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
43#define LOCKING_SUPPORT_ENABLE
44/* Locking resynchronize hack */
45#define LOCKING_RESYNC_ENABLE
46
47/*
48 * Keyboard Matrix Assignments
49 *
50 * Change this to how you wired your keyboard
51 * COLS: AVR pins used for columns, left to right
52 * ROWS: AVR pins used for rows, top to bottom
53 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
54 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
55 *
56 */
57
58#define MATRIX_ROW_PINS { F6, F5, F4, F1 }
59#define MATRIX_COL_PINS { F7, E2, C7, C6, B6, B5, D7, D6, D4, D5, D3, D2 }
60#define UNUSED_PINS
61
62/* COL2ROW, ROW2COL*/
63#define DIODE_DIRECTION COL2ROW
64
65/*
66 * Feature disable options
67 * These options are also useful to firmware size reduction.
68 */
69
70/* disable debug print */
71//#define NO_DEBUG
72
73/* disable print */
74//#define NO_PRINT
75
76/* disable action features */
77//#define NO_ACTION_LAYER
78//#define NO_ACTION_TAPPING
79//#define NO_ACTION_ONESHOT
80//#define NO_ACTION_MACRO
81//#define NO_ACTION_FUNCTION
diff --git a/keyboards/keyboardio/atreus/info.json b/keyboards/keyboardio/atreus/info.json
new file mode 100644
index 000000000..69386999a
--- /dev/null
+++ b/keyboards/keyboardio/atreus/info.json
@@ -0,0 +1,57 @@
1{
2 "keyboard_name": "Keyboardio Atreus",
3 "url": "",
4 "maintainer": "keyboardio",
5 "width": 13,
6 "height": 4.7,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"Q", "x":0, "y":0.6},
11 {"label":"W", "x":1, "y":0.35},
12 {"label":"E", "x":2, "y":0},
13 {"label":"R", "x":3, "y":0.35},
14 {"label":"T", "x":4, "y":0.7},
15 {"label":"Y", "x":8, "y":0.7},
16 {"label":"U", "x":9, "y":0.35},
17 {"label":"I", "x":10, "y":0},
18 {"label":"O", "x":11, "y":0.35},
19 {"label":"P", "x":12, "y":0.6},
20 {"label":"A", "x":0, "y":1.6},
21 {"label":"S", "x":1, "y":1.35},
22 {"label":"D", "x":2, "y":1},
23 {"label":"F", "x":3, "y":1.35},
24 {"label":"G", "x":4, "y":1.7},
25 {"label":"H", "x":8, "y":1.7},
26 {"label":"J", "x":9, "y":1.35},
27 {"label":"K", "x":10, "y":1},
28 {"label":"L", "x":11, "y":1.35},
29 {"label":";", "x":12, "y":1.6},
30 {"label":"Z", "x":0, "y":2.6},
31 {"label":"X", "x":1, "y":2.35},
32 {"label":"C", "x":2, "y":2},
33 {"label":"V", "x":3, "y":2.35},
34 {"label":"B", "x":4, "y":2.7},
35 {"label":"`", "x":5, "y":2.54},
36 {"label":"\\", "x":7, "y":2.54},
37 {"label":"N", "x":8, "y":2.7},
38 {"label":"M", "x":9, "y":2.35},
39 {"label":",", "x":10, "y":2},
40 {"label":".", "x":11, "y":2.35},
41 {"label":"/", "x":12, "y":2.6},
42 {"label":"Esc", "x":0, "y":3.6},
43 {"label":"Tab", "x":1, "y":3.35},
44 {"label":"Super", "x":2, "y":3},
45 {"label":"Shift", "x":3, "y":3.35},
46 {"label":"Bksp", "x":4, "y":3.7},
47 {"label":"Ctrl", "x":5, "y":3.54},
48 {"label":"Alt", "x":7, "y":3.54},
49 {"label":"Space", "x":8, "y":3.7},
50 {"label":"Fun", "x":9, "y":3.35},
51 {"label":"-", "x":10, "y":3},
52 {"label":"'", "x":11, "y":3.35},
53 {"label":"Enter", "x":12,"y":3.6}
54 ]
55 }
56 }
57}
diff --git a/keyboards/keyboardio/atreus/keymaps/default/keymap.c b/keyboards/keyboardio/atreus/keymaps/default/keymap.c
new file mode 100644
index 000000000..716873345
--- /dev/null
+++ b/keyboards/keyboardio/atreus/keymaps/default/keymap.c
@@ -0,0 +1,43 @@
1// Copyright (C) 2019, 2020 Keyboard.io, Inc
2//
3// this is the style you want to emulate.
4// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
5
6#include QMK_KEYBOARD_H
7
8enum layer_names {
9 _QW,
10 _RS,
11 _LW,
12};
13
14const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
15 [_QW] = LAYOUT( /* Qwerty */
16 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P ,
17 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN ,
18 KC_Z, KC_X, KC_C, KC_V, KC_B, KC_GRV, KC_BSLS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH ,
19 KC_ESC, KC_TAB, KC_LGUI, KC_LSFT, KC_BSPC, KC_LCTL, KC_LALT, KC_SPC, MO(_RS), KC_MINS, KC_QUOT, KC_ENT ),
20
21 /*
22 * ! @ up { } || pgup 7 8 9 *
23 * # left down right $ || pgdn 4 5 6 +
24 * [ ] ( ) & || ` 1 2 3 \
25 * lower insert super shift bksp ctrl || alt space fn . 0 =
26 */
27 [_RS] = LAYOUT( /* [> RAISE <] */
28 KC_EXLM, KC_AT, KC_UP, KC_DLR, KC_PERC, KC_PGUP, KC_7, KC_8, KC_9, KC_BSPC,
29 KC_LPRN, KC_LEFT, KC_DOWN, KC_RGHT, KC_RPRN, KC_PGDN, KC_4, KC_5, KC_6, KC_BSLS,
30 KC_LBRC, KC_RBRC, KC_HASH, KC_LCBR, KC_RCBR, KC_CIRC, KC_AMPR,KC_ASTR, KC_1, KC_2, KC_3, KC_PLUS,
31 TG(_LW), KC_INS, KC_LGUI, KC_LSFT, KC_BSPC, KC_LCTL, KC_LALT,KC_SPC, KC_TRNS, KC_DOT, KC_0, KC_EQL ),
32 /*
33 * insert home up end pgup || up F7 F8 F9 F10
34 * del left down right pgdn || down F4 F5 F6 F11
35 * volup reset || F1 F2 F3 F12
36 * voldn super shift bksp ctrl || alt space L0 prtsc scroll pause
37 */
38 [_LW] = LAYOUT( /* [> LOWER <] */
39 KC_INS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_UP, KC_F7, KC_F8, KC_F9, KC_F10 ,
40 KC_DEL, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_DOWN, KC_F4, KC_F5, KC_F6, KC_F11 ,
41 KC_NO, KC_VOLU, KC_NO, KC_NO, RESET, _______, _______, KC_NO, KC_F1, KC_F2, KC_F3, KC_F12 ,
42 KC_NO, KC_VOLD, KC_LGUI, KC_LSFT, KC_BSPC, KC_LCTL, KC_LALT, KC_SPC, TO(_QW), KC_PSCR, KC_SLCK, KC_PAUS )
43};
diff --git a/keyboards/keyboardio/atreus/readme.md b/keyboards/keyboardio/atreus/readme.md
new file mode 100644
index 000000000..ab7dba14d
--- /dev/null
+++ b/keyboards/keyboardio/atreus/readme.md
@@ -0,0 +1,31 @@
1# Keyboardio Atreus
2
3![Atreus](https://atreus.technomancy.us/i/atreus2-mug.jpg)
4
5A small mechanical keyboard that is based around the shape of the human hand.
6
7* Keyboard Maintainer: [Keyboardio](https://github.com/keyboardio)
8* Hardware Supported: Keyboardio Atreus
9* Hardware Availability: https://www.kickstarter.com/projects/keyboardio/atreus
10
11These configuration files are specifically for the Keyboardio Atreus, a
12collaboration between [Phil Hagelberg](https://github.com/technomancy) and
13[Keyboardio](https://github.com/keyboardio). The keyboard is currently on
14Kickstarter, and will come fully assembled.
15
16Make example for this keyboard (after setting up your build environment):
17
18 make keyboardio/atreus:default
19
20Flashing example for this keyboard:
21
22 make keyboardio/atreus:default:flash
23
24*Unlike the TMK firmware, these commands should be run from the root of the repository, not the directory containing this readme.*
25
26To flash new firmware, the keyboard needs to be in bootloader mode. To do that,
27one needs to hold the bottom left key (`Esc` by default) and reset the
28keyboard - either via a macro, or by sending a hang-up signal to the keyboard
29device, or by pressing the reset button on the bottom with a pin.
30
31See 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/keyboardio/atreus/rules.mk b/keyboards/keyboardio/atreus/rules.mk
new file mode 100644
index 000000000..76ff03a80
--- /dev/null
+++ b/keyboards/keyboardio/atreus/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 = lite # Virtual DIP switch configuration
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
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 = yes # 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
23
24UNICODE_ENABLE = yes # Unicode