aboutsummaryrefslogtreecommitdiff
path: root/keyboards/adalyn
diff options
context:
space:
mode:
authorTJ <tom.campie@gmail.com>2022-01-06 21:07:06 -0600
committerGitHub <noreply@github.com>2022-01-06 19:07:06 -0800
commit7ed34bb59fc61114cd2c1e329f40a8a2598d9357 (patch)
tree6d28d98f4879123afb07fbe118590c5e56a40aff /keyboards/adalyn
parentdb8cf0b872a1350f11d2de931f7b375feaec69c2 (diff)
downloadqmk_firmware-7ed34bb59fc61114cd2c1e329f40a8a2598d9357.tar.gz
qmk_firmware-7ed34bb59fc61114cd2c1e329f40a8a2598d9357.zip
[Keyboard] Adalyn keyboard (#14184)
* first Adalyn commit * fixed json and removed via * fixed GPL headers and rules.mk * fix extra space after gpl add vial keymap * Removed VIAL and revised rules.mk * updating per request and completing readme
Diffstat (limited to 'keyboards/adalyn')
-rw-r--r--keyboards/adalyn/adalyn.c16
-rw-r--r--keyboards/adalyn/adalyn.h33
-rw-r--r--keyboards/adalyn/config.h54
-rw-r--r--keyboards/adalyn/info.json10
-rw-r--r--keyboards/adalyn/keymaps/default/config.h21
-rw-r--r--keyboards/adalyn/keymaps/default/keymap.c72
-rw-r--r--keyboards/adalyn/keymaps/default/readme.md1
-rw-r--r--keyboards/adalyn/keymaps/default/rules.mk1
-rw-r--r--keyboards/adalyn/readme.md19
-rw-r--r--keyboards/adalyn/rules.mk22
10 files changed, 249 insertions, 0 deletions
diff --git a/keyboards/adalyn/adalyn.c b/keyboards/adalyn/adalyn.c
new file mode 100644
index 000000000..837cb9c98
--- /dev/null
+++ b/keyboards/adalyn/adalyn.c
@@ -0,0 +1,16 @@
1 /* Copyright TJ Campie
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 "adalyn.h"
diff --git a/keyboards/adalyn/adalyn.h b/keyboards/adalyn/adalyn.h
new file mode 100644
index 000000000..d9c1c6850
--- /dev/null
+++ b/keyboards/adalyn/adalyn.h
@@ -0,0 +1,33 @@
1 /* Copyright TJ Campie
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
20#define XXX KC_NO
21
22#define LAYOUT( \
23 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
24 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
25 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
26 K30, K31, K33, K36, K37, K39 \
27) \
28{ \
29 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \
30 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \
31 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \
32 { K30, K31, XXX, K33, XXX, XXX, K36, K37, XXX, K39 } \
33}
diff --git a/keyboards/adalyn/config.h b/keyboards/adalyn/config.h
new file mode 100644
index 000000000..c34337f24
--- /dev/null
+++ b/keyboards/adalyn/config.h
@@ -0,0 +1,54 @@
1 /* Copyright TJ Campie
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 "config_common.h"
19
20/* USB Device descriptor parameter */
21#define VENDOR_ID 0x7431
22#define PRODUCT_ID 0x6164
23#define DEVICE_VER 0x0001
24#define MANUFACTURER tominabox1
25#define PRODUCT Adalyn
26
27/* key matrix size */
28#define MATRIX_ROWS 4
29#define MATRIX_COLS 10
30
31/*
32 * Keyboard Matrix Assignments
33 *
34 * Change this to how you wired your keyboard
35 * COLS: AVR pins used for columns, left to right
36 * ROWS: AVR pins used for rows, top to bottom
37 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
38 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
39 *
40 */
41#define MATRIX_ROW_PINS { C7, D6, B7, B3 }
42#define MATRIX_COL_PINS { D7, B4, B5, B6, C6, F7, F6, F5, F4, F1 }
43#define UNUSED_PINS
44
45/* COL2ROW, ROW2COL*/
46#define DIODE_DIRECTION COL2ROW
47
48/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
49#define DEBOUNCE 5
50
51/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
52#define LOCKING_SUPPORT_ENABLE
53/* Locking resynchronize hack */
54#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/adalyn/info.json b/keyboards/adalyn/info.json
new file mode 100644
index 000000000..b8cc6640a
--- /dev/null
+++ b/keyboards/adalyn/info.json
@@ -0,0 +1,10 @@
1{
2 "keyboard_name": "adalyn",
3 "url": "https://github.com/MarvFPV/Adalyn",
4 "maintainer": "tominabox1",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":6.5, "y":0}, {"x":7.5, "y":0}, {"x":8.5, "y":0}, {"x":9.5, "y":0}, {"x":10.5, "y":0, "w":1.25}, {"x":0, "y":1, "w":1.25}, {"x":1.25, "y":1}, {"x":2.25, "y":1}, {"x":3.25, "y":1}, {"x":4.25, "y":1}, {"x":6.75, "y":1}, {"x":7.75, "y":1}, {"x":8.75, "y":1}, {"x":9.75, "y":1}, {"x":10.75, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":6.25, "y":2}, {"x":7.25, "y":2}, {"x":8.25, "y":2}, {"x":9.25, "y":2}, {"x":10.25, "y":2, "w":1.5}, {"x":0, "y":3}, {"x":2.5, "y":3}, {"x":3.5, "y":3, "w":2.25}, {"x":6.25, "y":3, "w":2}, {"x":8.25, "y":3}, {"x":10.75, "y":3}]
8 }
9}
10}
diff --git a/keyboards/adalyn/keymaps/default/config.h b/keyboards/adalyn/keymaps/default/config.h
new file mode 100644
index 000000000..d8b87f947
--- /dev/null
+++ b/keyboards/adalyn/keymaps/default/config.h
@@ -0,0 +1,21 @@
1 /* Copyright TJ Campie
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#ifdef COMBO_ENABLE
19# define COMBO_COUNT 5
20# define COMBO_TERM 200
21#endif
diff --git a/keyboards/adalyn/keymaps/default/keymap.c b/keyboards/adalyn/keymaps/default/keymap.c
new file mode 100644
index 000000000..21cc74fa9
--- /dev/null
+++ b/keyboards/adalyn/keymaps/default/keymap.c
@@ -0,0 +1,72 @@
1 /* Copyright TJ Campie
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
18enum layers{
19 _BASE,
20 _NUM_SYM,
21 _NAV
22};
23enum combo_events {
24 COMBO_BSPC,
25 COMBO_NUMBAK,
26 COMBO_TAB,
27 COMBO_ESC,
28 COMBO_DEL,
29};
30
31#define KC_NUM_SPC LT(_NUM_SYM, KC_SPC)
32#define KC_GA LGUI_T(KC_A)
33#define KC_AS LALT_T(KC_S)
34#define KC_CD LCTL_T(KC_D)
35#define KC_SF LSFT_T(KC_F)
36#define KC_SJ RSFT_T(KC_J)
37#define KC_CK RCTL_T(KC_K)
38#define KC_AL RALT_T(KC_L)
39#define KC_GSCLN RGUI_T(KC_SCLN)
40
41const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
42 [_BASE] = LAYOUT(
43 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
44 KC_GA, KC_AS, KC_CD, KC_SF, KC_G, KC_H, KC_SJ, KC_CK, KC_AL, KC_ENT,
45 KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT,
46 KC_LCTL, KC_LALT, KC_BSPC, LT(_NUM_SYM,KC_SPACE), KC_RGUI, KC_RCTL
47 ),
48
49 [_NUM_SYM] = LAYOUT(
50 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
51 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
52 KC_LCBR, KC_LBRC, KC_LPRN, KC_UNDS, KC_NO, KC_RPRN, KC_RBRC, KC_RCBR, KC_SCLN, KC_QUOTE,
53 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
54 )
55};
56
57#ifdef COMBO_ENABLE
58const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
59const uint16_t PROGMEM combo_numbak[] = {KC_0, KC_9, COMBO_END};
60const uint16_t PROGMEM combo_tab[] = {KC_Q, KC_W, COMBO_END};
61const uint16_t PROGMEM combo_esc[] = {KC_E, KC_W, COMBO_END};
62const uint16_t PROGMEM combo_del[] = {KC_MINS, KC_EQL, COMBO_END};
63
64combo_t key_combos[COMBO_COUNT] = {
65 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
66 [COMBO_NUMBAK] = COMBO(combo_numbak,KC_BSPC),
67 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
68 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
69 [COMBO_DEL] = COMBO(combo_del,KC_DEL),
70
71};
72#endif
diff --git a/keyboards/adalyn/keymaps/default/readme.md b/keyboards/adalyn/keymaps/default/readme.md
new file mode 100644
index 000000000..fb85d36e2
--- /dev/null
+++ b/keyboards/adalyn/keymaps/default/readme.md
@@ -0,0 +1 @@
# Default QAZ Layout
diff --git a/keyboards/adalyn/keymaps/default/rules.mk b/keyboards/adalyn/keymaps/default/rules.mk
new file mode 100644
index 000000000..ab1e43818
--- /dev/null
+++ b/keyboards/adalyn/keymaps/default/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes
diff --git a/keyboards/adalyn/readme.md b/keyboards/adalyn/readme.md
new file mode 100644
index 000000000..ee24bead6
--- /dev/null
+++ b/keyboards/adalyn/readme.md
@@ -0,0 +1,19 @@
1# Adalyn
2
3![Adalyn](https://i.imgur.com/3mGQlh2.jpg)
4
5*A cool QAZ-Alice hybrid designed by [Marv](https://github.com/MarvFPV/Adalyn) with a PCB by [tominabox1](https://github.com/tominabox1)*
6* Keyboard Maintainer: [tominabox1](https://github.com/tominabox1)
7* Hardware Supported: Adalyn PCB, atmega32u4
8* Hardware Availability: Open source on @tominabox1 GitHub
9
10Make example for this keyboard (after setting up your build environment):
11 make adalyn:default
12Flashing example for this keyboard:
13 make adalyn:default:flash
14See 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).
15## Bootloader
16Enter the bootloader in 3 ways:
17* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
18* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
19* **Keycode in layout**: Press the key mapped to `RESET` if it is available
diff --git a/keyboards/adalyn/rules.mk b/keyboards/adalyn/rules.mk
new file mode 100644
index 000000000..078a9bca0
--- /dev/null
+++ b/keyboards/adalyn/rules.mk
@@ -0,0 +1,22 @@
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 = yes # Enable Bootmagic Lite
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
21AUDIO_ENABLE = no # Audio output
22COMBO_ENABLE = no