aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjames sa <188772+jamessa@users.noreply.github.com>2021-01-30 11:24:42 +0800
committerGitHub <noreply@github.com>2021-01-29 19:24:42 -0800
commit53b35052eefc8a341cbc68d3d9aba52dfbf59f35 (patch)
treea68821ef895b45de1e41a0930542726b8d75303e
parent5691f1341dcb48d7d043bfd6f8663b414aaf427d (diff)
downloadqmk_firmware-53b35052eefc8a341cbc68d3d9aba52dfbf59f35.tar.gz
qmk_firmware-53b35052eefc8a341cbc68d3d9aba52dfbf59f35.zip
[Keyboard] A symmetric stagger keyboard: Angel (#11501)
* New symmetric stagger keyboard: Angel * mac layout * layout simplify * Update keyboards/angel/info.json Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/angel/keymaps/default/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/angel/config.h Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/angel/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/angel/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * tab lang switch * move to handwired and fix build instructions. Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/handwired/angel/angel.h40
-rw-r--r--keyboards/handwired/angel/config.h55
-rw-r--r--keyboards/handwired/angel/info.json13
-rw-r--r--keyboards/handwired/angel/keymaps/default/keymap.c74
-rw-r--r--keyboards/handwired/angel/keymaps/default/readme.md7
-rw-r--r--keyboards/handwired/angel/readme.md19
-rw-r--r--keyboards/handwired/angel/rules.mk22
7 files changed, 230 insertions, 0 deletions
diff --git a/keyboards/handwired/angel/angel.h b/keyboards/handwired/angel/angel.h
new file mode 100644
index 000000000..f39fac97d
--- /dev/null
+++ b/keyboards/handwired/angel/angel.h
@@ -0,0 +1,40 @@
1/* Copyright 2021 James Sa <james.sa.2013@gmail.com>
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 k11 , k12 , k13 , k14 , k15 , k16 , k17 , k18 , k19 , k1a , k1b ,\
31 k21 , k22 , k23 , k24 , k25 , k26 , k27 , k28 , k29 , k2a , k2b , k2c ,\
32 k31 , k32 , k33 , k34 , k35 , k36 , k37 , k38 , k39 , k3a , k3b , k3c , k3d ,\
33 k41 , k42 , k43 , k44 , k45 , k46 , k47 , k48 , k49 , k4a , k4b \
34) \
35{ \
36 { k11, k12, k13, k14, k15,KC_NO,KC_NO, k16, k17, k18, k19, k1a, k1b }, \
37 { k21, k22, k23, k24, k25, k26, KC_NO, k27, k28, k29, k2a, k2b, k2c }, \
38 { k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d }, \
39 { KC_NO,k41,k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, KC_NO} \
40}
diff --git a/keyboards/handwired/angel/config.h b/keyboards/handwired/angel/config.h
new file mode 100644
index 000000000..e2472a1a2
--- /dev/null
+++ b/keyboards/handwired/angel/config.h
@@ -0,0 +1,55 @@
1/*
2Copyright 2021 James Sa <james.sa.2013@gmail.com>
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/* USB Device descriptor parameter */
21#define VENDOR_ID 0xFEED
22#define PRODUCT_ID 0x0805
23
24#define MANUFACTURER JSA
25#define PRODUCT Angel
26/* USB Version in Binary-coded decimal: 0xJJMN where
27 * JJ is the major number, M is minor, N is sub minor. */
28#define DEVICE_VER 0x0100 // Version 1.00: hand-wire
29
30
31/* key matrix size */
32#define MATRIX_ROWS 4
33#define MATRIX_COLS 13
34
35/*
36 * Keyboard Matrix Assignments
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 */
42#define MATRIX_ROW_PINS { B6, B2, B5, B4 }
43#define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B3, B1, F7, F6, F5 }
44#define UNUSED_PINS
45#define DIODE_DIRECTION COL2ROW
46
47// https://docs.qmk.fm/using-qmk/software-features/tap_hold
48#define TAPPING_TERM 200
49#define IGNORE_MOD_TAP_INTERRUPT
50
51/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
52#define DEBOUNCE 5
53
54/* define if matrix has ghost (lacks anti-ghosting diodes) */
55#define MATRIX_HAS_GHOST
diff --git a/keyboards/handwired/angel/info.json b/keyboards/handwired/angel/info.json
new file mode 100644
index 000000000..3d57c8afc
--- /dev/null
+++ b/keyboards/handwired/angel/info.json
@@ -0,0 +1,13 @@
1{
2 "keyboard_name": "Angel",
3 "keyboard_folder": "angel",
4 "url": "https://github.com/jamessa/Angel",
5 "maintainer": "jamessa",
6 "width": 13,
7 "height": 4,
8 "layouts": {
9 "LAYOUT": {
10 "layout": [{"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":0.5, "y":1}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":12, "y":2}, {"x":0.5, "y":3}, {"x":1.5, "y":3}, {"x":2.5, "y":3}, {"x":3.5, "y":3}, {"x":4.5, "y":3, "w":1.25}, {"x":5.75, "y":3, "w":1.5}, {"x":7.25, "y":3, "w":1.25}, {"x":8.5, "y":3}, {"x":9.5, "y":3}, {"x":10.5, "y":3}, {"x":11.5, "y":3}]
11 }
12 }
13}
diff --git a/keyboards/handwired/angel/keymaps/default/keymap.c b/keyboards/handwired/angel/keymaps/default/keymap.c
new file mode 100644
index 000000000..23fd6d524
--- /dev/null
+++ b/keyboards/handwired/angel/keymaps/default/keymap.c
@@ -0,0 +1,74 @@
1/* Copyright 2021 James Sa
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
19// Defines names for use in layer keycodes and the keymap
20enum layer_names {
21 _BASE, // Colemak mod DH
22 _KAI, // beginner, no modifier on home row
23 _PUNC, // puncuation
24 _FN // function
25};
26
27#define _C(X) CTL_T(X)
28#define _A(X) ALT_T(X)
29#define _S(X) SFT_T(X)
30#define _G(X) GUI_T(X)
31#define FN_TAB LT(_FN, KC_TAB)
32#define PN_BS LT(_PUNC, KC_BSPC)
33// macOS shortcut
34#define _MSNCTL C(KC_UP)
35#define _APPWIN C(KC_DOWN)
36#define WKSPLF C(KC_LEFT)
37#define WKSPRT C(KC_RGHT)
38#define COPY G(KC_C)
39#define PSTE G(KC_V)
40#define CUT G(KC_X)
41#define UNDO G(KC_Z)
42#define REDO G(S(KC_Z))
43#define SCNSHOT S(G(KC_4))
44// window management utility
45#define DIVVY G(KC_G)
46// puncuation
47#define KC_DQOT S(KC_QUOT) // "
48
49const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50 [_BASE] LAYOUT(
51 KC_Q, KC_W, KC_F, KC_P, KC_B, KC_QUOT, KC_J, KC_L, KC_U, KC_Y, KC_SCLN,
52 _C(KC_A),_A(KC_R),_S(KC_S),_G(KC_T),KC_G, KC_LBRC, KC_RBRC, KC_M, _G(KC_N),_S(KC_E),_A(KC_I),_C(KC_O),
53 KC_Z, KC_X, KC_C, KC_D, KC_V, KC_MINS, KC_GRV, KC_EQL, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH,
54 KC_ESC, KC_UP, KC_DOWN, PN_BS, FN_TAB, KC_ENT, KC_CAPS, KC_SPC, KC_LEFT, KC_RGHT, KC_BSLS
55 ),
56 [_KAI] LAYOUT(
57 KC_Q, KC_W, KC_F, KC_P, KC_B, KC_QUOT, KC_J, KC_L, KC_U, KC_Y, KC_SCLN,
58 KC_A, KC_R, KC_S, KC_T, KC_G, KC_LBRC, KC_RBRC, KC_M, KC_N, KC_E, KC_I, KC_O,
59 _S(KC_Z),KC_X, KC_C, KC_D, KC_V, KC_MINS,TO(_BASE),KC_EQL, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH,
60 _C(KC_ESC), _A(KC_UP), _G(KC_DOWN), PN_BS, FN_TAB, KC_ENT, KC_CAPS, KC_SPC, KC_LEFT, KC_RGHT, KC_BSLS
61 ),
62 [_PUNC] LAYOUT(
63 KC_PERC, KC_CIRC, KC_AMPR, KC_DLR, _______, _______, _______, KC_7, KC_8, KC_9, KC_PLUS,
64 KC_EXLM, KC_AT, KC_HASH, KC_DQOT, KC_LPRN, _______, _______, KC_RPRN, KC_4, KC_5, KC_6, KC_MINS,
65 _______, _______, _______, KC_QUOT, _______, _______, _______, _______, _______, KC_1, KC_2, KC_3, KC_ASTR,
66 _______, _______, _______, _______, _______, _______, _______, KC_0, KC_COMM, KC_DOT, KC_SLSH
67 ),
68 [_FN] LAYOUT(
69 _______, SCNSHOT, DIVVY, _______, _______, _______, _______, _______, KC_UP, KC_VOLD, KC_VOLU,
70 UNDO, CUT, COPY, PSTE, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______,
71 REDO, WKSPLF, _MSNCTL, WKSPRT, _______, _______,TO(_KAI), _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END,
72 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
73 )
74};
diff --git a/keyboards/handwired/angel/keymaps/default/readme.md b/keyboards/handwired/angel/keymaps/default/readme.md
new file mode 100644
index 000000000..6425306b0
--- /dev/null
+++ b/keyboards/handwired/angel/keymaps/default/readme.md
@@ -0,0 +1,7 @@
1# Hand-wire Angel
2
3![Angel Layout Image](https://raw.githubusercontent.com/jamessa/Angel/master/attachments/handwire.jpeg)
4
5The default layout for hand-wire Angel is Colemak-DHM with modifiers on the home row. I'd love to see how we can improve it.
6
7The most enjoyable part besides soldering is poking the QMK configurations and test it on keybr.com. It's so much fun. \ No newline at end of file
diff --git a/keyboards/handwired/angel/readme.md b/keyboards/handwired/angel/readme.md
new file mode 100644
index 000000000..d3b2ddd64
--- /dev/null
+++ b/keyboards/handwired/angel/readme.md
@@ -0,0 +1,19 @@
1# Angel
2
3![Angel](https://raw.githubusercontent.com/jamessa/Angel/master/attachments/handwire.jpeg)
4
5Angel is a minimalist symmetrical stagger keyboard with thumb position in mind. Layout and hand wire guide is on [Github](https://github.com/jamessa/Angel).
6
7* Keyboard Maintainer: [James Sa](https://github.com/jamessa)
8* Hardware Supported: Hand wired
9* Hardware Availability: You can follow the build guide here. https://github.com/jamessa/Angel
10
11Make example for this keyboard (after setting up your build environment):
12
13 make handwired/angel:default
14
15Flashing example for this keyboard:
16
17 make handwired/angel:default:flash
18
19See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools), the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide), and the [hand-wiring guide](https://docs.qmk.fm/#/hand_wire) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/handwired/angel/rules.mk b/keyboards/handwired/angel/rules.mk
new file mode 100644
index 000000000..8a411ac60
--- /dev/null
+++ b/keyboards/handwired/angel/rules.mk
@@ -0,0 +1,22 @@
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 = full # 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 = 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