aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/atlantis/ak81_ve/ak81_ve.c60
-rw-r--r--keyboards/atlantis/ak81_ve/ak81_ve.h35
-rw-r--r--keyboards/atlantis/ak81_ve/config.h117
-rw-r--r--keyboards/atlantis/ak81_ve/info.json91
-rw-r--r--keyboards/atlantis/ak81_ve/keymaps/default/keymap.c37
-rw-r--r--keyboards/atlantis/ak81_ve/keymaps/via/keymap.c69
-rw-r--r--keyboards/atlantis/ak81_ve/keymaps/via/rules.mk4
-rw-r--r--keyboards/atlantis/ak81_ve/readme.md23
-rw-r--r--keyboards/atlantis/ak81_ve/rules.mk22
-rw-r--r--keyboards/atlantis/encoder_actions.c68
-rw-r--r--keyboards/atlantis/encoder_actions.h21
-rw-r--r--keyboards/atlantis/readme.md7
12 files changed, 554 insertions, 0 deletions
diff --git a/keyboards/atlantis/ak81_ve/ak81_ve.c b/keyboards/atlantis/ak81_ve/ak81_ve.c
new file mode 100644
index 000000000..b8ef4ee22
--- /dev/null
+++ b/keyboards/atlantis/ak81_ve/ak81_ve.c
@@ -0,0 +1,60 @@
1/* Copyright 2022 @fOmey
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 "ak81_ve.h"
18
19#ifdef RGB_MATRIX_ENABLE
20led_config_t g_led_config = { {
21 // Key Matrix to LED Index
22 { 12, 11, 10, 9, 8, 7, 6, 5, 4, NO_LED, 3, 2, 1, 0 }, // 13 keys
23 { 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13 }, // 15 keys
24 { 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28 }, // 15 keys
25 { 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, NO_LED }, // 14 keys
26 { 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, NO_LED, 58, 57 }, // 14 keys
27 { 79, 78, 77, NO_LED, NO_LED, NO_LED, 76, NO_LED, NO_LED, NO_LED, 75, 74, 73, 72, 71 } // 9 keys
28}, {
29 // LED Index to Physical Positon
30 { 240, 0 }, { 224, 0 }, { 208, 0 }, { 192, 0 }, { 176, 0 }, { 160, 0 }, { 144, 0 }, { 128, 0 }, { 112, 0 }, { 96, 0 }, { 80, 0 }, { 64, 0 }, { 32, 0 },
31 { 240, 13 }, { 224, 13 }, { 208, 13 }, { 192 , 13 }, { 176, 13 }, { 160, 13 }, { 144, 13 }, { 128, 13 }, { 112, 13 }, { 96, 13 }, { 80, 13 }, { 64, 13}, { 48, 13 }, { 32, 13 }, { 16, 13 },
32 { 240, 26 }, { 224, 26 }, { 208, 26 }, { 192 , 26 }, { 176, 26 }, { 160, 26 }, { 144, 26 }, { 128, 26 }, { 112, 26 }, { 96, 26 }, { 80, 26 }, { 64, 26}, { 48, 26 }, { 32, 26 }, { 16, 26 },
33 { 240, 39 }, { 216, 39 }, { 192 , 39 }, { 176, 39 }, { 160, 39 }, { 144, 39 }, { 128, 39 }, { 112, 39 }, { 96, 39 }, { 80, 39 }, { 64, 39}, { 48, 39 }, { 32, 39 }, { 16, 39 },
34 { 240, 52 }, { 224, 52 }, { 208, 52 }, { 192 , 52 }, { 176, 52 }, { 160, 52 }, { 144, 52 }, { 128, 52 }, { 112, 52 }, { 96, 52 }, { 80, 52 }, { 64, 52}, { 48, 52 }, { 24, 52 },
35 { 240, 64 }, { 224, 64 }, { 208, 64 }, { 192, 64 }, { 176, 64 }, { 112, 64 }, { 48, 64 }, { 32, 64 }, { 16, 64 }
36}, {
37 // LED Index to Flag
38 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
39 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
40 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
41 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8,
42 4, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
43 4, 4, 4, 1, 1, 4, 1, 1, 1,
44 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
45} };
46#endif
47
48#if !defined(VIA_ENABLE) && defined(ENCODER_ENABLE)
49bool encoder_update_kb(uint8_t index, bool clockwise) {
50 if (!encoder_update_user(index, clockwise)) {
51 return false;
52 }
53 if (clockwise) {
54 tap_code(KC_VOLD);
55 } else {
56 tap_code(KC_VOLU);
57 }
58 return true;
59}
60#endif \ No newline at end of file
diff --git a/keyboards/atlantis/ak81_ve/ak81_ve.h b/keyboards/atlantis/ak81_ve/ak81_ve.h
new file mode 100644
index 000000000..c43f477c0
--- /dev/null
+++ b/keyboards/atlantis/ak81_ve/ak81_ve.h
@@ -0,0 +1,35 @@
1/* Copyright 2022 @fOmey
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#include "quantum.h"
19#include "encoder_actions.h"
20
21#define LAYOUT( \
22 K000, K001, K002, K003, K004, K005, K006, K007, K008, K010, K011, K012, K013, K014, \
23 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
24 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, \
25 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K314, \
26 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, \
27 K500, K501, K502, K506, K510, K511, K512, K513, K514 \
28) { \
29 { K000, K001, K002, K003, K004, K005, K006, K007, K008, KC_NO, K010, K011, K012, K013, K014 }, \
30 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
31 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214 }, \
32 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, KC_NO, K314 }, \
33 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414 }, \
34 { K500, K501, K502, KC_NO, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, K514 } \
35}
diff --git a/keyboards/atlantis/ak81_ve/config.h b/keyboards/atlantis/ak81_ve/config.h
new file mode 100644
index 000000000..0167d0e18
--- /dev/null
+++ b/keyboards/atlantis/ak81_ve/config.h
@@ -0,0 +1,117 @@
1/* Copyright 2022 @fOmey
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#define VENDOR_ID 0x416B
23#define PRODUCT_ID 0x0081
24#define DEVICE_VER 0x0001
25#define MANUFACTURER Atlantis
26#define PRODUCT AK81_VE
27
28/* Key matrix size */
29#define MATRIX_ROWS 6
30#define MATRIX_COLS 15
31
32/* Key matrix pins */
33#define MATRIX_ROW_PINS { F1, F7, F6, F5, F4, D5 }
34#define MATRIX_COL_PINS { F0, C7, C6, B6, B5, B4, D7, D6, B2, B7, D3, D2, D1, D0, B3 }
35#define UNUSED_PINS
36
37/* Encoder pins */
38#define ENCODERS_PAD_A { B0 }
39#define ENCODERS_PAD_B { E6 }
40#define ENCODER_RESOLUTION 4
41#define ENCODERS 1
42#define ENCODERS_CCW_KEY { { 3, 5 } } // Note: array is { col, row )
43#define ENCODERS_CW_KEY { { 4, 5 } } // Note: array is { col, row )
44
45/* LED pins */
46#define LED_CAPS_LOCK_PIN D4
47#define LED_PIN_ON_STATE 0
48
49/* COL2ROW or ROW2COL */
50#define DIODE_DIRECTION COL2ROW
51
52/* Set 0 if debouncing isn't needed */
53#define DEBOUNCE 5
54
55/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
56#define LOCKING_SUPPORT_ENABLE
57
58/* Locking resynchronize hack */
59#define LOCKING_RESYNC_ENABLE
60#define FORCE_NKRO
61
62#define RGB_DI_PIN B1
63#ifdef RGB_DI_PIN
64
65#define RGB_MATRIX_KEYPRESSES
66#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
67#define RGB_DISABLE_WHEN_USB_SUSPENDED true
68#define DRIVER_LED_TOTAL 96
69#define RGB_MATRIX_STARTUP_HUE 170
70#define RGB_MATRIX_STARTUP_SAT 255
71#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 130
72#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
73
74#define RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
75#define RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
76#define RGB_MATRIX_GRADIENT_LEFT_RIGHT // Static gradient left to right, speed controls how much gradient changes
77#define RGB_MATRIX_BREATHING // Single hue brightness cycling animation
78#define RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
79#define RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
80#define RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
81#define RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
82#define RGB_MATRIX_BAND_SPIRAL_SAT // Single hue spinning spiral fades saturation
83#define RGB_MATRIX_BAND_SPIRAL_VAL // Single hue spinning spiral fades brightness
84#define RGB_MATRIX_CYCLE_ALL // Full keyboard solid hue cycling through full gradient
85#define RGB_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
86#define RGB_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
87#define RGB_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
88#define RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
89#define RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Full gradent Chevron shapped scrolling left to right
90#define RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard
91#define RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
92#define RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
93#define RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
94#define RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
95#define RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue
96#define RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation
97#define RGB_MATRIX_HUE_BREATHING // Hue shifts up a slight ammount at the same time, then shifts back
98#define RGB_MATRIX_HUE_PENDULUM // Hue shifts up a slight ammount in a wave to the right, then back to the left
99#define RGB_MATRIX_HUE_WAVE // Hue shifts up a slight ammount and then back down in a wave to the right
100#define RGB_MATRIX_PIXEL_FRACTAL // Single hue fractal filled keys pulsing horizontally out to edges
101#define RGB_MATRIX_PIXEL_RAIN // Randomly light keys with random hues
102#define RGB_MATRIX_TYPING_HEATMAP // How hot is your WPM!
103#define RGB_MATRIX_DIGITAL_RAIN // That famous computer simulation
104#define RGB_MATRIX_SOLID_REACTIVE_SIMPLE // Pulses keys hit to hue & value then fades value out
105#define RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
106#define RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
107#define RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
108#define RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
109#define RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
110#define RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
111#define RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
112#define RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
113#define RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
114#define RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
115#define RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
116
117#endif \ No newline at end of file
diff --git a/keyboards/atlantis/ak81_ve/info.json b/keyboards/atlantis/ak81_ve/info.json
new file mode 100644
index 000000000..8d4a8ebf5
--- /dev/null
+++ b/keyboards/atlantis/ak81_ve/info.json
@@ -0,0 +1,91 @@
1{
2 "keyboard_name": "AK81_VE",
3 "maintainer": "fOmey",
4 "layouts": {
5 "LAYOUT": {
6 "layout": [
7 { "label": "Esc", "x": 0, "y": 0 },
8 { "label": "F1", "x": 2, "y": 0 },
9 { "label": "F2", "x": 3, "y": 0 },
10 { "label": "F3", "x": 4, "y": 0 },
11 { "label": "F4", "x": 5, "y": 0 },
12 { "label": "F5", "x": 6.5, "y": 0 },
13 { "label": "F6", "x": 7.5, "y": 0 },
14 { "label": "F7", "x": 8.5, "y": 0 },
15 { "label": "F8", "x": 9.5, "y": 0 },
16 { "label": "F9", "x": 11, "y": 0 },
17 { "label": "F10", "x": 12, "y": 0 },
18 { "label": "F11", "x": 13, "y": 0 },
19 { "label": "F12", "x": 14, "y": 0 },
20 { "label": "Del", "x": 16.25, "y": 0 },
21 { "label": "~", "x": 0, "y": 1 },
22 { "label": "!", "x": 1, "y": 1 },
23 { "label": "@", "x": 2, "y": 1 },
24 { "label": "#", "x": 3, "y": 1 },
25 { "label": "$", "x": 4, "y": 1 },
26 { "label": "%", "x": 5, "y": 1 },
27 { "label": "^", "x": 6, "y": 1 },
28 { "label": "&", "x": 7, "y": 1 },
29 { "label": "*", "x": 8, "y": 1 },
30 { "label": "(", "x": 9, "y": 1 },
31 { "label": ")", "x": 10, "y": 1 },
32 { "label": "_", "x": 11, "y": 1 },
33 { "label": "+", "x": 12, "y": 1 },
34 { "label": "Backspace", "w": 2, "x": 13, "y": 1 },
35 { "label": "Home", "x": 16.25, "y": 1 },
36 { "label": "Tab", "w": 1.5, "x": 0, "y": 2 },
37 { "label": "Q", "x": 1.5, "y": 2 },
38 { "label": "W", "x": 2.5, "y": 2 },
39 { "label": "E", "x": 3.5, "y": 2 },
40 { "label": "R", "x": 4.5, "y": 2 },
41 { "label": "T", "x": 5.5, "y": 2 },
42 { "label": "Y", "x": 6.5, "y": 2 },
43 { "label": "U", "x": 7.5, "y": 2 },
44 { "label": "I", "x": 8.5, "y": 2 },
45 { "label": "O", "x": 9.5, "y": 2 },
46 { "label": "P", "x": 10.5, "y": 2 },
47 { "label": "{", "x": 11.5, "y": 2 },
48 { "label": "}", "x": 12.5, "y": 2 },
49 { "label": "|", "w": 1.5, "x": 13.5, "y": 2 },
50 { "label": "PageUp", "x": 16.25, "y": 2 },
51 { "label": "Capslock", "w": 1.75, "x": 0, "y": 3 },
52 { "label": "A", "x": 1.75, "y": 3 },
53 { "label": "S", "x": 2.75, "y": 3 },
54 { "label": "D", "x": 3.75, "y": 3 },
55 { "label": "F", "x": 4.75, "y": 3 },
56 { "label": "G", "x": 5.75, "y": 3 },
57 { "label": "H", "x": 6.75, "y": 3 },
58 { "label": "J", "x": 7.75, "y": 3 },
59 { "label": "K", "x": 8.75, "y": 3 },
60 { "label": "L", "x": 9.75, "y": 3 },
61 { "label": ":", "x": 10.75, "y": 3 },
62 { "label": "\"", "x": 11.75, "y": 3 },
63 { "label": "Enter", "w": 2.25, "x": 12.75, "y": 3 },
64 { "label": "PageDown", "x": 16.25, "y": 3 },
65 { "label": "Shift", "w": 2.25, "x": 0, "y": 4 },
66 { "label": "Z", "x": 2.25, "y": 4 },
67 { "label": "X", "x": 3.25, "y": 4 },
68 { "label": "C", "x": 4.25, "y": 4 },
69 { "label": "V", "x": 5.25, "y": 4 },
70 { "label": "B", "x": 6.25, "y": 4 },
71 { "label": "N", "x": 7.25, "y": 4 },
72 { "label": "M", "x": 8.25, "y": 4 },
73 { "label": ",", "x": 9.25, "y": 4 },
74 { "label": ".", "x": 10.25, "y": 4 },
75 { "label": "?", "x": 11.25, "y": 4 },
76 { "label": "Shift", "w": 1.75, "x": 12.25, "y": 4 },
77 { "label": "Up", "x": 14.25, "y": 4.25 },
78 { "label": "End", "x": 16.25, "y": 4 },
79 { "label": "Ctrl", "w": 1.25, "x": 0, "y": 5 },
80 { "label": "Win", "w": 1.25, "x": 1.25, "y": 5 },
81 { "label": "Alt", "w": 1.25, "x": 2.5, "y": 5 },
82 { "w": 6.25, "x": 3.75, "y": 5 },
83 { "label": "Alt", "w": 1.25, "x": 10, "y": 5 },
84 { "label": "Fn", "w": 1.25, "x": 11.25, "y": 5 },
85 { "label": "Left", "x": 13.25, "y": 5.25 },
86 { "label": "Down", "x": 14.25, "y": 5.25 },
87 { "label": "Right", "x": 15.25, "y": 5.25 }
88 ]
89 }
90 }
91} \ No newline at end of file
diff --git a/keyboards/atlantis/ak81_ve/keymaps/default/keymap.c b/keyboards/atlantis/ak81_ve/keymaps/default/keymap.c
new file mode 100644
index 000000000..a11091c8b
--- /dev/null
+++ b/keyboards/atlantis/ak81_ve/keymaps/default/keymap.c
@@ -0,0 +1,37 @@
1/* Copyright 2022 @fOmey
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
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21 [0] = LAYOUT(
22 KC_ESC, 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,
23 KC_GRV, 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_HOME,
24 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, KC_PGUP,
25 KC_CAPS, 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_PGDN,
26 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_UP, KC_END,
27 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
28
29 [1] = LAYOUT(
30 KC_SYSTEM_SLEEP, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, RGB_TOG,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPI,
32 _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, RGB_VAI,
33 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAD,
34 _______, _______, _______, KC_CALC, _______, _______, _______, KC_MUTE, _______, _______, _______, _______, RGB_HUI, RGB_SPD,
35 _______, _______, _______, _______, _______, _______, RGB_SAD, RGB_HUD, RGB_SAI)
36
37}; \ No newline at end of file
diff --git a/keyboards/atlantis/ak81_ve/keymaps/via/keymap.c b/keyboards/atlantis/ak81_ve/keymaps/via/keymap.c
new file mode 100644
index 000000000..106d966fa
--- /dev/null
+++ b/keyboards/atlantis/ak81_ve/keymaps/via/keymap.c
@@ -0,0 +1,69 @@
1/* Copyright 2022 @fOmey
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#define LAYOUT_via( \
20 K000, K001, K002, K003, K004, K005, K006, K007, K008, K010, K011, K012, K013, K014, \
21 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
22 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, \
23 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K314, \
24 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, \
25 K500, K501, K502, K503, K504, K506, K510, K511, K512, K513, K514 \
26) { \
27 { K000, K001, K002, K003, K004, K005, K006, K007, K008, KC_NO, K010, K011, K012, K013, K014 }, \
28 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
29 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214 }, \
30 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, KC_NO, K314 }, \
31 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414 }, \
32 { K500, K501, K502, K503, K504, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, K514 } \
33}
34
35const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
36
37 [0] = LAYOUT_via(
38 KC_ESC, 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,
39 KC_GRV, 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_HOME,
40 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, KC_PGUP,
41 KC_CAPS, 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_PGDN,
42 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_UP, KC_END,
43 KC_LCTL, KC_LGUI, KC_LALT, KC_VOLU, KC_VOLD, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
44
45 [1] = LAYOUT_via(
46 KC_SYSTEM_SLEEP, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, RGB_TOG,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPI,
48 _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, RGB_VAI,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAD,
50 _______, _______, _______, KC_CALC, _______, _______, _______, KC_MUTE, _______, _______, _______, _______, RGB_HUI, RGB_SPD,
51 _______, _______, _______, RGB_MOD, RGB_RMOD, _______, _______, _______, RGB_SAD, RGB_HUD, RGB_SAI),
52
53 [2] = LAYOUT_via(
54 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
55 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
56 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
57 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
58 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
59 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
60
61 [3] = LAYOUT_via(
62 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
63 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
64 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
65 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
66 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
67 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
68
69}; \ No newline at end of file
diff --git a/keyboards/atlantis/ak81_ve/keymaps/via/rules.mk b/keyboards/atlantis/ak81_ve/keymaps/via/rules.mk
new file mode 100644
index 000000000..041588872
--- /dev/null
+++ b/keyboards/atlantis/ak81_ve/keymaps/via/rules.mk
@@ -0,0 +1,4 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
3
4SRC += encoder_actions.c \ No newline at end of file
diff --git a/keyboards/atlantis/ak81_ve/readme.md b/keyboards/atlantis/ak81_ve/readme.md
new file mode 100644
index 000000000..d9a6f9627
--- /dev/null
+++ b/keyboards/atlantis/ak81_ve/readme.md
@@ -0,0 +1,23 @@
1# ATLANTIS AK81_VE
2
3![ATLANTIS AK81_VE](https://i.imgur.com/nfuocgS.jpeg)
4
5A 75% hotswap keyboard with per key RGB backlighting, RGB underglow and a rotary encoder.
6
7* Keyboard Maintainer: [fOmey](https://github.com/fOmey)
8* Hardware Supported: AK75X@AK81_VE
9* Hardware Availability: [AliExpress.com](https://aliexpress.com), [Shopee](https://shopee.com.my)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make atlantis/ak81_ve:default
14
15## Bootloader
16
17Enter the bootloader in 2 ways:
18
19* **Bootmagic reset**: Hold down the key at (0,0) in the matrix
20* **Keycode in layout**: Press the key mapped to `RESET` if it is available
21* **Physical reset pins**: Briefly short the reset pins using tweezers, a paperclip, or any other conductive material.
22
23See 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). \ No newline at end of file
diff --git a/keyboards/atlantis/ak81_ve/rules.mk b/keyboards/atlantis/ak81_ve/rules.mk
new file mode 100644
index 000000000..45d044f9f
--- /dev/null
+++ b/keyboards/atlantis/ak81_ve/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
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Keyboard RGB underglow
18RGB_MATRIX_ENABLE = yes # Enable RGB matrix effects
19RGB_MATRIX_DRIVER = WS2812
20AUDIO_ENABLE = no # Audio output
21DYNAMIC_MACRO_ENABLE = yes
22ENCODER_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/atlantis/encoder_actions.c b/keyboards/atlantis/encoder_actions.c
new file mode 100644
index 000000000..b41a248a8
--- /dev/null
+++ b/keyboards/atlantis/encoder_actions.c
@@ -0,0 +1,68 @@
1/* Copyright 2020 Neil Brian Ramirez
2 * Copyright 2021 drashna jael're (@drashna)
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "encoder_actions.h"
19
20#if defined(VIA_ENABLE) && defined(ENCODER_ENABLE)
21
22# ifdef ENCODERS
23static uint8_t encoder_state[ENCODERS] = {0};
24static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY;
25static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY;
26# endif
27
28void encoder_action_unregister(void) {
29# ifdef ENCODERS
30 for (int index = 0; index < ENCODERS; ++index) {
31 if (encoder_state[index]) {
32 keyevent_t encoder_event = (keyevent_t) {
33 .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index],
34 .pressed = false,
35 .time = (timer_read() | 1)
36 };
37 encoder_state[index] = 0;
38 action_exec(encoder_event);
39 }
40 }
41# endif
42}
43
44void encoder_action_register(uint8_t index, bool clockwise) {
45# ifdef ENCODERS
46 keyevent_t encoder_event = (keyevent_t) {
47 .key = clockwise ? encoder_cw[index] : encoder_ccw[index],
48 .pressed = true,
49 .time = (timer_read() | 1)
50 };
51 encoder_state[index] = (clockwise ^ 1) | (clockwise << 1);
52 action_exec(encoder_event);
53# endif
54}
55
56void matrix_scan_kb(void) {
57 encoder_action_unregister();
58 matrix_scan_user();
59}
60
61bool encoder_update_kb(uint8_t index, bool clockwise) {
62 encoder_action_register(index, clockwise);
63 // don't return user actions, because they are in the keymap
64 // encoder_update_user(index, clockwise);
65 return true;
66};
67
68#endif
diff --git a/keyboards/atlantis/encoder_actions.h b/keyboards/atlantis/encoder_actions.h
new file mode 100644
index 000000000..2484af52a
--- /dev/null
+++ b/keyboards/atlantis/encoder_actions.h
@@ -0,0 +1,21 @@
1/* Copyright 2020 Neil Brian Ramirez
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 3 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 "quantum.h"
18
19void encoder_action_unregister(void);
20
21void encoder_action_register(uint8_t index, bool clockwise);
diff --git a/keyboards/atlantis/readme.md b/keyboards/atlantis/readme.md
new file mode 100644
index 000000000..50a2cc2fe
--- /dev/null
+++ b/keyboards/atlantis/readme.md
@@ -0,0 +1,7 @@
1# Atlantis
2
3A company that has been known to create some unorthodox and unique styled keyboard layouts, a great example of this is the AK82. The AK82 is a 60% layout with a numpad (numpad pictured commonly on the left, however a right side variant the AK82_VE exists).
4
5Atlantis also produce some more traditional layouts like the AK81 a 75% layout (AK81_VE variant includes a rotary enconder) and a large range of macro pads.
6
7Atlantis seem to be operating mainly out of Malaysia, products can be difficult to source internationally. \ No newline at end of file