summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-10-27 00:17:30 +0000
committerQMK Bot <hello@qmk.fm>2022-10-27 00:17:30 +0000
commitdfef313587ef288b416f37515c2828bbb86fb96d (patch)
treed7df7e58d177b8427fbb275f06ef3c0b692e54c4 /keyboards
parentd311d86ddf97e4387099f2d4e1479314ea958c47 (diff)
parent432feecc61d9b4ede3fb7b65920714853209a7a7 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/ai03/lunar_ii/config.h62
-rw-r--r--keyboards/ai03/lunar_ii/info.json90
-rw-r--r--keyboards/ai03/lunar_ii/keymaps/default/keymap.c34
-rw-r--r--keyboards/ai03/lunar_ii/keymaps/default/readme.md2
-rw-r--r--keyboards/ai03/lunar_ii/keymaps/via/keymap.c48
-rw-r--r--keyboards/ai03/lunar_ii/keymaps/via/readme.md2
-rw-r--r--keyboards/ai03/lunar_ii/keymaps/via/rules.mk1
-rw-r--r--keyboards/ai03/lunar_ii/readme.md15
-rw-r--r--keyboards/ai03/lunar_ii/rules.mk21
9 files changed, 275 insertions, 0 deletions
diff --git a/keyboards/ai03/lunar_ii/config.h b/keyboards/ai03/lunar_ii/config.h
new file mode 100644
index 0000000000..5942457d57
--- /dev/null
+++ b/keyboards/ai03/lunar_ii/config.h
@@ -0,0 +1,62 @@
1/*
2Copyright 2022 ai03 Design Studio
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/* Mechanical lock switch support */
23#define LOCKING_SUPPORT_ENABLE
24#define LOCKING_RESYNC_ENABLE
25
26/* Solenoid support */
27#define SOLENOID_PIN B7
28#define SOLENOID_DEFAULT_DWELL 15
29
30
31/*
32 * Force NKRO
33 *
34 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
35 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
36 * makefile for this to work.)
37 *
38 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
39 * until the next keyboard reset.
40 *
41 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
42 * fully operational during normal computer usage.
43 *
44 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
45 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
46 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
47 * power-up.
48 *
49 */
50//#define FORCE_NKRO
51
52
53/*
54 * Feature disable options
55 * These options are also useful to firmware size reduction.
56 */
57
58/* disable debug print */
59//#define NO_DEBUG
60
61/* disable print */
62//#define NO_PRINT
diff --git a/keyboards/ai03/lunar_ii/info.json b/keyboards/ai03/lunar_ii/info.json
new file mode 100644
index 0000000000..5d86a13ad1
--- /dev/null
+++ b/keyboards/ai03/lunar_ii/info.json
@@ -0,0 +1,90 @@
1{
2 "keyboard_name": "Lunar II",
3 "manufacturer": "ai03 Design Studio",
4 "url": "https://ai03.com/projects/lunar-ii",
5 "maintainer": "ai03-2725",
6 "usb": {
7 "vid": "0xA103",
8 "pid": "0x0016",
9 "device_version": "1.0.0",
10 },
11 "diode_direction": "COL2ROW",
12 "matrix_pins": {
13 "rows": [ "D0", "D1", "D2", "F0", "F1" ],
14 "cols": [ "F4", "F5", "F6", "F7", "C7", "C6", "B6", "B5", "B4", "D7", "D6", "D4", "D5", "D3"]
15 },
16 "indicators": {
17 "caps_lock": "B3",
18 "on_state": 0
19 },
20 "build": {
21 "debounce_type": "asym_eager_defer_pk"
22 },
23 "layouts": {
24 "LAYOUT": {
25 "layout": [
26 { "matrix": [0, 0], "x": 0.0, "y": 0.0 },
27 { "matrix": [0, 1], "x": 1.0, "y": 0.0 },
28 { "matrix": [0, 2], "x": 2.0, "y": 0.0 },
29 { "matrix": [0, 3], "x": 3.0, "y": 0.0 },
30 { "matrix": [0, 4], "x": 4.0, "y": 0.0 },
31 { "matrix": [0, 5], "x": 5.0, "y": 0.0 },
32 { "matrix": [0, 6], "x": 6.0, "y": 0.0 },
33 { "matrix": [0, 7], "x": 7.0, "y": 0.0 },
34 { "matrix": [0, 8], "x": 8.0, "y": 0.0 },
35 { "matrix": [0, 9], "x": 9.0, "y": 0.0 },
36 { "matrix": [0, 10], "x": 10.0, "y": 0.0 },
37 { "matrix": [0, 11], "x": 11.0, "y": 0.0 },
38 { "matrix": [0, 12], "x": 12.0, "y": 0.0 },
39 { "matrix": [0, 13], "x": 13.0, "y": 0.0 },
40 { "matrix": [2, 12], "x": 14.0, "y": 0.0 },
41 { "matrix": [1, 0], "w": 1.5, "x": 0.0, "y": 1.0 },
42 { "matrix": [1, 1], "x": 1.5, "y": 1.0 },
43 { "matrix": [1, 2], "x": 2.5, "y": 1.0 },
44 { "matrix": [1, 3], "x": 3.5, "y": 1.0 },
45 { "matrix": [1, 4], "x": 4.5, "y": 1.0 },
46 { "matrix": [1, 5], "x": 5.5, "y": 1.0 },
47 { "matrix": [1, 6], "x": 6.5, "y": 1.0 },
48 { "matrix": [1, 7], "x": 7.5, "y": 1.0 },
49 { "matrix": [1, 8], "x": 8.5, "y": 1.0 },
50 { "matrix": [1, 9], "x": 9.5, "y": 1.0 },
51 { "matrix": [1, 10], "x": 10.5, "y": 1.0 },
52 { "matrix": [1, 11], "x": 11.5, "y": 1.0 },
53 { "matrix": [1, 12], "x": 12.5, "y": 1.0 },
54 { "matrix": [1, 13], "w": 1.5, "x": 13.5, "y": 1.0 },
55 { "matrix": [2, 0], "w": 1.75, "x": 0.0, "y": 2.0 },
56 { "matrix": [2, 1], "x": 1.75, "y": 2.0 },
57 { "matrix": [2, 2], "x": 2.75, "y": 2.0 },
58 { "matrix": [2, 3], "x": 3.75, "y": 2.0 },
59 { "matrix": [2, 4], "x": 4.75, "y": 2.0 },
60 { "matrix": [2, 5], "x": 5.75, "y": 2.0 },
61 { "matrix": [2, 6], "x": 6.75, "y": 2.0 },
62 { "matrix": [2, 7], "x": 7.75, "y": 2.0 },
63 { "matrix": [2, 8], "x": 8.75, "y": 2.0 },
64 { "matrix": [2, 9], "x": 9.75, "y": 2.0 },
65 { "matrix": [2, 10], "x": 10.75, "y": 2.0 },
66 { "matrix": [2, 11], "x": 11.75, "y": 2.0 },
67 { "matrix": [2, 13], "w": 2.25, "x": 12.75, "y": 2.0 },
68 { "matrix": [3, 0], "w": 2.25, "x": 0.0, "y": 3.0 },
69 { "matrix": [3, 2], "x": 2.25, "y": 3.0 },
70 { "matrix": [3, 3], "x": 3.25, "y": 3.0 },
71 { "matrix": [3, 4], "x": 4.25, "y": 3.0 },
72 { "matrix": [3, 5], "x": 5.25, "y": 3.0 },
73 { "matrix": [3, 6], "x": 6.25, "y": 3.0 },
74 { "matrix": [3, 7], "x": 7.25, "y": 3.0 },
75 { "matrix": [3, 8], "x": 8.25, "y": 3.0 },
76 { "matrix": [3, 9], "x": 9.25, "y": 3.0 },
77 { "matrix": [3, 10], "x": 10.25, "y": 3.0 },
78 { "matrix": [3, 11], "x": 11.25, "y": 3.0 },
79 { "matrix": [3, 13], "w": 2.75, "x": 12.25, "y": 3.0 },
80 { "matrix": [4, 0], "w": 1.5, "x": 0.0, "y": 4.0 },
81 { "matrix": [4, 2], "w": 1.25, "x": 1.5, "y": 4.0 },
82 { "matrix": [4, 3], "w": 1.5, "x": 2.75, "y": 4.0 },
83 { "matrix": [4, 7], "w": 6.5, "x": 4.25, "y": 4.0 },
84 { "matrix": [4, 11], "w": 1.5, "x": 10.75, "y": 4.0 },
85 { "matrix": [4, 12], "w": 1.25, "x": 12.25, "y": 4.0 },
86 { "matrix": [4, 13], "w": 1.5, "x": 13.5, "y": 4.0 }
87 ]
88 }
89 }
90}
diff --git a/keyboards/ai03/lunar_ii/keymaps/default/keymap.c b/keyboards/ai03/lunar_ii/keymaps/default/keymap.c
new file mode 100644
index 0000000000..261c999da7
--- /dev/null
+++ b/keyboards/ai03/lunar_ii/keymaps/default/keymap.c
@@ -0,0 +1,34 @@
1/* Copyright 2022 ai03 Design Studio
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT(
20 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, KC_DEL,
21 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,
22 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
24 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL
25 ),
26 [1] = LAYOUT(
27 _______, 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_DEL, KC_DEL,
28 KC_CAPS, _______, _______, KC_PGUP, _______, _______, _______, _______, KC_UP, _______, _______, _______, _______, _______,
29 _______, _______, KC_HOME, KC_PGDN, KC_END, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
30 _______, HPT_TOG, HPT_FBK, HPT_DWLI, HPT_DWLD, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______
32 )
33};
34
diff --git a/keyboards/ai03/lunar_ii/keymaps/default/readme.md b/keyboards/ai03/lunar_ii/keymaps/default/readme.md
new file mode 100644
index 0000000000..a956904f1c
--- /dev/null
+++ b/keyboards/ai03/lunar_ii/keymaps/default/readme.md
@@ -0,0 +1,2 @@
1# The default keymap for lunar_ii
2Nothing special \ No newline at end of file
diff --git a/keyboards/ai03/lunar_ii/keymaps/via/keymap.c b/keyboards/ai03/lunar_ii/keymaps/via/keymap.c
new file mode 100644
index 0000000000..58fe4c7ecb
--- /dev/null
+++ b/keyboards/ai03/lunar_ii/keymaps/via/keymap.c
@@ -0,0 +1,48 @@
1/* Copyright 2022 ai03 Design Studio
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT(
20 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, KC_DEL,
21 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,
22 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
24 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL
25 ),
26 [1] = LAYOUT(
27 _______, 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_DEL, KC_DEL,
28 KC_CAPS, _______, _______, KC_PGUP, _______, _______, _______, _______, KC_UP, _______, _______, _______, _______, _______,
29 _______, _______, KC_HOME, KC_PGDN, KC_END, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
30 _______, HPT_TOG, HPT_FBK, HPT_DWLI, HPT_DWLD, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______
32 ),
33 [2] = LAYOUT(
34 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
35 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______
39 ),
40 [3] = LAYOUT(
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______
46 )
47};
48
diff --git a/keyboards/ai03/lunar_ii/keymaps/via/readme.md b/keyboards/ai03/lunar_ii/keymaps/via/readme.md
new file mode 100644
index 0000000000..942e11ff4a
--- /dev/null
+++ b/keyboards/ai03/lunar_ii/keymaps/via/readme.md
@@ -0,0 +1,2 @@
1# The via keymap for lunar_ii
2Enables via support; for use with via configurator
diff --git a/keyboards/ai03/lunar_ii/keymaps/via/rules.mk b/keyboards/ai03/lunar_ii/keymaps/via/rules.mk
new file mode 100644
index 0000000000..036bd6d1c3
--- /dev/null
+++ b/keyboards/ai03/lunar_ii/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/ai03/lunar_ii/readme.md b/keyboards/ai03/lunar_ii/readme.md
new file mode 100644
index 0000000000..7bf8769c76
--- /dev/null
+++ b/keyboards/ai03/lunar_ii/readme.md
@@ -0,0 +1,15 @@
1# Lunar II
2
3![lunar_ii](https://i.imgur.com/W3xbm4mh.png)
4
5Second generation compact AEK keyboard
6
7* Keyboard Maintainer: [ai03-2725](https://github.com/ai03-2725)
8* Hardware Supported: The Lunar II PCB
9* Hardware Availability: Switchplate Peripherals, TypePlus
10
11Make example for this keyboard (after setting up your build environment):
12
13 make ai03/lunar_ii:default
14
15See 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/ai03/lunar_ii/rules.mk b/keyboards/ai03/lunar_ii/rules.mk
new file mode 100644
index 0000000000..1a29d22700
--- /dev/null
+++ b/keyboards/ai03/lunar_ii/rules.mk
@@ -0,0 +1,21 @@
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 = yes # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19
20HAPTIC_ENABLE = yes # Enable solenoid support
21HAPTIC_DRIVER += SOLENOID