diff options
| author | Derek <dschmell91@gmail.com> | 2022-06-09 23:42:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-09 20:42:53 -0700 |
| commit | 7c097ee6b404503f35ce43c85d46a5adde926146 (patch) | |
| tree | 0eb31ceb738e56526dfb9235193ebc4d9b5e43c7 /keyboards/nacly | |
| parent | 93c3a959a7b12bb7f204e176742585892e6a5d50 (diff) | |
[Keyboard] Add Sodium keyboards (#17078)
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: nacly <nacly@pop-os.localdomain>
Diffstat (limited to 'keyboards/nacly')
21 files changed, 897 insertions, 0 deletions
diff --git a/keyboards/nacly/sodium42/config.h b/keyboards/nacly/sodium42/config.h new file mode 100644 index 0000000000..94c6d903e1 --- /dev/null +++ b/keyboards/nacly/sodium42/config.h | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 0xBEEF | ||
| 23 | #define PRODUCT_ID 0xFED0 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER nacly | ||
| 26 | #define PRODUCT sodium42 | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | // Rows are doubled-up | ||
| 30 | #define MATRIX_ROWS 8 | ||
| 31 | #define MATRIX_COLS 6 | ||
| 32 | |||
| 33 | // wiring of each half | ||
| 34 | #define MATRIX_ROW_PINS { F7, D4, D7, B4 } | ||
| 35 | #define MATRIX_COL_PINS { D2, C6, E6, B5, B2, B3 } | ||
| 36 | |||
| 37 | #define DIODE_DIRECTION COL2ROW | ||
| 38 | |||
| 39 | #define SPLIT_HAND_PIN F4 | ||
| 40 | |||
| 41 | /* Set 0 if debouncing isn't needed */ | ||
| 42 | #define DEBOUNCE 5 | ||
| 43 | |||
| 44 | /* serial.c configuration for split keyboard */ | ||
| 45 | #define SOFT_SERIAL_PIN D3 | ||
| 46 | |||
| 47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 48 | #define LOCKING_SUPPORT_ENABLE | ||
| 49 | /* Locking resynchronize hack */ | ||
| 50 | #define LOCKING_RESYNC_ENABLE | ||
| 51 | |||
| 52 | /* ws2812 RGB LED */ | ||
| 53 | //#define RGB_DI_PIN B1 | ||
| 54 | /* | ||
| 55 | #define RGBLED_NUM 12 // Number of LEDs | ||
| 56 | |||
| 57 | #define RGBLED_SPLIT { 6, 6 } | ||
| 58 | */ | ||
| 59 | /* | ||
| 60 | * Feature disable options | ||
| 61 | * These options are also useful to firmware size reduction. | ||
| 62 | */ | ||
| 63 | |||
| 64 | /* disable debug print */ | ||
| 65 | // #define NO_DEBUG | ||
| 66 | |||
| 67 | /* disable print */ | ||
| 68 | // #define NO_PRINT | ||
| 69 | |||
| 70 | /* disable action features */ | ||
| 71 | //#define NO_ACTION_LAYER | ||
| 72 | //#define NO_ACTION_TAPPING | ||
| 73 | //#define NO_ACTION_ONESHOT | ||
diff --git a/keyboards/nacly/sodium42/info.json b/keyboards/nacly/sodium42/info.json new file mode 100644 index 0000000000..0597d17dc0 --- /dev/null +++ b/keyboards/nacly/sodium42/info.json | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "sodium42", | ||
| 3 | "url": "https://nacly.net", | ||
| 4 | "maintainer": "nacly", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | {"x": 0, "y": 0.75}, | ||
| 9 | {"x": 1, "y": 0.5}, | ||
| 10 | {"x": 2, "y": 0}, | ||
| 11 | {"x": 3, "y": 0.25}, | ||
| 12 | {"x": 4, "y": 1}, | ||
| 13 | |||
| 14 | {"x": 8.75, "y": 1}, | ||
| 15 | {"x": 9.75, "y": 0.5}, | ||
| 16 | {"x": 10.75, "y": 0}, | ||
| 17 | {"x": 11.75, "y": 0.5}, | ||
| 18 | {"x": 12.75, "y": 0.75}, | ||
| 19 | |||
| 20 | {"x": 0, "y": 1.75}, | ||
| 21 | {"x": 1, "y": 1.5}, | ||
| 22 | {"x": 2, "y": 1}, | ||
| 23 | {"x": 3, "y": 1.25}, | ||
| 24 | {"x": 4, "y": 2}, | ||
| 25 | |||
| 26 | {"x": 8.75, "y": 2}, | ||
| 27 | {"x": 9.75, "y": 1.5}, | ||
| 28 | {"x": 10.75, "y": 1}, | ||
| 29 | {"x": 11.75, "y": 1.5}, | ||
| 30 | {"x": 12.75, "y": 1.75}, | ||
| 31 | |||
| 32 | {"x": 0, "y": 2.75}, | ||
| 33 | {"x": 1, "y": 2.5}, | ||
| 34 | {"x": 2, "y": 2}, | ||
| 35 | {"x": 3, "y": 2.25}, | ||
| 36 | {"x": 4, "y": 3}, | ||
| 37 | |||
| 38 | {"x": 8.75, "y": 3}, | ||
| 39 | {"x": 9.75, "y": 2.5}, | ||
| 40 | {"x": 10.75, "y": 2}, | ||
| 41 | {"x": 11.75, "y": 2.5}, | ||
| 42 | {"x": 12.75, "y": 2.75}, | ||
| 43 | |||
| 44 | {"x": 0, "y": 3.75}, | ||
| 45 | {"x": 1, "y": 3.5}, | ||
| 46 | {"x": 2, "y": 3}, | ||
| 47 | {"x": 3, "y": 3.25}, | ||
| 48 | {"x": 4, "y": 4}, | ||
| 49 | {"x": 5, "y": 4.5}, | ||
| 50 | |||
| 51 | {"x": 7.75, "y": 4.5}, | ||
| 52 | {"x": 8.75, "y": 4}, | ||
| 53 | {"x": 9.75, "y": 3.5}, | ||
| 54 | {"x": 10.75, "y": 3}, | ||
| 55 | {"x": 11.75, "y": 3.5}, | ||
| 56 | {"x": 12.75, "y": 3.75} | ||
| 57 | ] | ||
| 58 | } | ||
| 59 | } | ||
| 60 | } | ||
diff --git a/keyboards/nacly/sodium42/keymaps/default/keymap.c b/keyboards/nacly/sodium42/keymaps/default/keymap.c new file mode 100644 index 0000000000..199c4ff474 --- /dev/null +++ b/keyboards/nacly/sodium42/keymaps/default/keymap.c | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT( | ||
| 20 | KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
| 21 | KC_A, KC_S, LT(3,KC_D), LT(1,KC_F), KC_G, KC_H, LT(2,KC_J), KC_K, KC_L, KC_SCLN, | ||
| 22 | MT(MOD_LSFT,KC_Z), KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, MT(MOD_RSFT,KC_SLSH), | ||
| 23 | KC_LCTL, KC_LALT, KC_LGUI, LT(2,KC_EQL), KC_BSPC, KC_DEL, KC_ENT, KC_SPC, KC_LBRC, KC_RBRC, KC_MINS, KC_ESC | ||
| 24 | ), | ||
| 25 | //Holding F | ||
| 26 | [1] = LAYOUT( | ||
| 27 | KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 28 | KC_NO, KC_NO, KC_NO, _______, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, | ||
| 29 | MT(MOD_LSFT,KC_Z), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, MT(MOD_RSFT,KC_SLSH), | ||
| 30 | KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_NO, KC_NO, KC_HOME, KC_END, KC_NO, KC_NO, KC_NO, KC_NO | ||
| 31 | ), | ||
| 32 | //Holding J | ||
| 33 | [2] = LAYOUT( | ||
| 34 | KC_MUTE, KC_VOLD, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BSLS, | ||
| 35 | KC_MPRV, KC_MPLY, KC_MNXT, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_QUOT, | ||
| 36 | MT(MOD_LSFT,KC_Z), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, _______, KC_NO, KC_NO, MT(MOD_RSFT,KC_SLSH), | ||
| 37 | KC_LGUI, KC_LALT, KC_NO, _______, KC_F14, KC_F15, KC_ENT, KC_SPC, KC_NO, KC_NO, KC_NO, KC_NO | ||
| 38 | ), | ||
| 39 | //Holding d | ||
| 40 | [3] = LAYOUT( | ||
| 41 | KC_MUTE, KC_VOLD, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_7, KC_8, KC_9, KC_MINS, | ||
| 42 | KC_MPRV, KC_MPLY, KC_MNXT, KC_NO, KC_NO, KC_NO, KC_4, KC_5, KC_6, KC_QUOT, | ||
| 43 | MT(MOD_LSFT,KC_Z), KC_NO, _______, KC_NO, KC_NO, KC_NO, KC_1, KC_2, KC_3, MT(MOD_RSFT,KC_SLSH), | ||
| 44 | KC_LCTL, KC_LALT, KC_LGUI, LT(2,KC_EQL), KC_BSPC, KC_DEL, KC_ENT, KC_0, KC_NO, KC_NO, KC_DOT, KC_NO | ||
| 45 | ) | ||
| 46 | }; | ||
| 47 | |||
diff --git a/keyboards/nacly/sodium42/readme.md b/keyboards/nacly/sodium42/readme.md new file mode 100644 index 0000000000..8e44f510ec --- /dev/null +++ b/keyboards/nacly/sodium42/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # sodium keyboard | ||
| 2 | |||
| 3 | ## Your new favorite split columnar stagger | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [NaCly](https://github.com/Na-Cly) | ||
| 6 | * Hardware Supported: sodium42 PCBs, Pro Micro | ||
| 7 | * Hardware Availability: https://nacly.net | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make nacly/sodium42:default | ||
| 12 | |||
| 13 | ## Bootloader | ||
| 14 | |||
| 15 | Enter the bootloader in 2 ways: | ||
| 16 | |||
| 17 | * **Physical reset button**: Press the reset button twice | ||
| 18 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
| 19 | |||
| 20 | See 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/nacly/sodium42/rules.mk b/keyboards/nacly/sodium42/rules.mk new file mode 100644 index 0000000000..ea969e963f --- /dev/null +++ b/keyboards/nacly/sodium42/rules.mk | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
| 19 | |||
| 20 | SPLIT_KEYBOARD = yes \ No newline at end of file | ||
diff --git a/keyboards/nacly/sodium42/sodium42.c b/keyboards/nacly/sodium42/sodium42.c new file mode 100644 index 0000000000..980b123bac --- /dev/null +++ b/keyboards/nacly/sodium42/sodium42.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 "sodium42.h" | ||
diff --git a/keyboards/nacly/sodium42/sodium42.h b/keyboards/nacly/sodium42/sodium42.h new file mode 100644 index 0000000000..427b6f4d43 --- /dev/null +++ b/keyboards/nacly/sodium42/sodium42.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 LAYOUT(\ | ||
| 21 | L00, L01, L02, L03, L04, R04, R03, R02, R01, R00, \ | ||
| 22 | L10, L11, L12, L13, L14, R14, R13, R12, R11, R10, \ | ||
| 23 | L20, L21, L22, L23, L24, R24, R23, R22, R21, R20, \ | ||
| 24 | L30, L31, L32, L33, L34, L35, R35, R34, R33, R32, R31, R30 \ | ||
| 25 | )\ | ||
| 26 | {\ | ||
| 27 | { L00, L01, L02, L03, L04, KC_NO }, \ | ||
| 28 | { L10, L11, L12, L13, L14, KC_NO }, \ | ||
| 29 | { L20, L21, L22, L23, L24, KC_NO }, \ | ||
| 30 | { L30, L31, L32, L33, L34, L35 }, \ | ||
| 31 | \ | ||
| 32 | { R00, R01, R02, R03, R04, KC_NO }, \ | ||
| 33 | { R10, R11, R12, R13, R14, KC_NO }, \ | ||
| 34 | { R20, R21, R22, R23, R24, KC_NO }, \ | ||
| 35 | { R30, R31, R32, R33, R34, R35 } \ | ||
| 36 | } | ||
diff --git a/keyboards/nacly/sodium50/config.h b/keyboards/nacly/sodium50/config.h new file mode 100644 index 0000000000..0247752d3f --- /dev/null +++ b/keyboards/nacly/sodium50/config.h | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 0xBEEF | ||
| 23 | #define PRODUCT_ID 0xFED0 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER nacly | ||
| 26 | #define PRODUCT sodium50 | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | // Rows are doubled-up | ||
| 30 | #define MATRIX_ROWS 10 | ||
| 31 | #define MATRIX_COLS 7 | ||
| 32 | |||
| 33 | // wiring of each half | ||
| 34 | #define MATRIX_ROW_PINS { F7, D4, D7, B4, B6 } | ||
| 35 | #define MATRIX_COL_PINS { D2, C6, E6, B5, B2, B3, B1 } | ||
| 36 | |||
| 37 | #define DIODE_DIRECTION COL2ROW | ||
| 38 | |||
| 39 | #define SPLIT_HAND_PIN F4 | ||
| 40 | |||
| 41 | /* Set 0 if debouncing isn't needed */ | ||
| 42 | #define DEBOUNCE 5 | ||
| 43 | |||
| 44 | /* serial.c configuration for split keyboard */ | ||
| 45 | #define SOFT_SERIAL_PIN D3 | ||
| 46 | |||
| 47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 48 | #define LOCKING_SUPPORT_ENABLE | ||
| 49 | /* Locking resynchronize hack */ | ||
| 50 | #define LOCKING_RESYNC_ENABLE | ||
| 51 | |||
| 52 | /* ws2812 RGB LED */ | ||
| 53 | //#define RGB_DI_PIN B1 | ||
| 54 | /* | ||
| 55 | #define RGBLED_NUM 12 // Number of LEDs | ||
| 56 | |||
| 57 | #define RGBLED_SPLIT { 6, 6 } | ||
| 58 | */ | ||
| 59 | /* | ||
| 60 | * Feature disable options | ||
| 61 | * These options are also useful to firmware size reduction. | ||
| 62 | */ | ||
| 63 | |||
| 64 | /* disable debug print */ | ||
| 65 | // #define NO_DEBUG | ||
| 66 | |||
| 67 | /* disable print */ | ||
| 68 | // #define NO_PRINT | ||
| 69 | |||
| 70 | /* disable action features */ | ||
| 71 | //#define NO_ACTION_LAYER | ||
| 72 | //#define NO_ACTION_TAPPING | ||
| 73 | //#define NO_ACTION_ONESHOT | ||
diff --git a/keyboards/nacly/sodium50/info.json b/keyboards/nacly/sodium50/info.json new file mode 100644 index 0000000000..254e4a11cd --- /dev/null +++ b/keyboards/nacly/sodium50/info.json | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "sodium50", | ||
| 3 | "url": "https://nacly.net", | ||
| 4 | "maintainer": "nacly", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | {"x": 0, "y": 0.75}, | ||
| 9 | {"x": 1, "y": 0.75}, | ||
| 10 | {"x": 2, "y": 0.5}, | ||
| 11 | {"x": 3, "y": 0}, | ||
| 12 | {"x": 4, "y": 0.25}, | ||
| 13 | {"x": 5, "y": 1}, | ||
| 14 | |||
| 15 | {"x": 9.75, "y": 1}, | ||
| 16 | {"x": 10.75, "y": 0.5}, | ||
| 17 | {"x": 11.75, "y": 0}, | ||
| 18 | {"x": 12.75, "y": 0.5}, | ||
| 19 | {"x": 13.75, "y": 0.75}, | ||
| 20 | {"x": 14.75, "y": 0.75}, | ||
| 21 | |||
| 22 | {"x": 0, "y": 1.75}, | ||
| 23 | {"x": 1, "y": 1.75}, | ||
| 24 | {"x": 2, "y": 1.5}, | ||
| 25 | {"x": 3, "y": 1}, | ||
| 26 | {"x": 4, "y": 1.25}, | ||
| 27 | {"x": 5, "y": 2}, | ||
| 28 | |||
| 29 | {"x": 9.75, "y": 2}, | ||
| 30 | {"x": 10.75, "y": 1.5}, | ||
| 31 | {"x": 11.75, "y": 1}, | ||
| 32 | {"x": 12.75, "y": 1.5}, | ||
| 33 | {"x": 13.75, "y": 1.75}, | ||
| 34 | {"x": 14.75, "y": 1.75}, | ||
| 35 | |||
| 36 | {"x": 0, "y": 2.75}, | ||
| 37 | {"x": 1, "y": 2.75}, | ||
| 38 | {"x": 2, "y": 2.5}, | ||
| 39 | {"x": 3, "y": 2}, | ||
| 40 | {"x": 4, "y": 2.25}, | ||
| 41 | {"x": 5, "y": 3}, | ||
| 42 | |||
| 43 | {"x": 9.75, "y": 3}, | ||
| 44 | {"x": 10.75, "y": 2.5}, | ||
| 45 | {"x": 11.75, "y": 2}, | ||
| 46 | {"x": 12.75, "y": 2.5}, | ||
| 47 | {"x": 13.75, "y": 2.75}, | ||
| 48 | {"x": 14.75, "y": 2.75}, | ||
| 49 | |||
| 50 | {"x": 0, "y": 3.75}, | ||
| 51 | {"x": 1, "y": 3.75}, | ||
| 52 | {"x": 2, "y": 3.5}, | ||
| 53 | {"x": 3, "y": 3}, | ||
| 54 | {"x": 4, "y": 3.25}, | ||
| 55 | {"x": 5, "y": 4}, | ||
| 56 | {"x": 6, "y": 4.5}, | ||
| 57 | |||
| 58 | {"x": 8.75, "y": 4.5}, | ||
| 59 | {"x": 9.75, "y": 4}, | ||
| 60 | {"x": 10.75, "y": 3.5}, | ||
| 61 | {"x": 11.75, "y": 3}, | ||
| 62 | {"x": 12.75, "y": 3.5}, | ||
| 63 | {"x": 13.75, "y": 3.75}, | ||
| 64 | {"x": 14.75, "y": 3.75} | ||
| 65 | ] | ||
| 66 | } | ||
| 67 | } | ||
| 68 | } \ No newline at end of file | ||
diff --git a/keyboards/nacly/sodium50/keymaps/default/keymap.c b/keyboards/nacly/sodium50/keymaps/default/keymap.c new file mode 100644 index 0000000000..954e4678af --- /dev/null +++ b/keyboards/nacly/sodium50/keymaps/default/keymap.c | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT( | ||
| 20 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 21 | KC_LGUI, KC_A, KC_S, KC_D, LT(1,KC_F), KC_G, KC_H, LT(2,KC_J), KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 22 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 23 | KC_LCTL, KC_LGUI, KC_LALT, KC_GRV, KC_EQL, KC_BSPC, KC_DEL, KC_ENT, KC_SPC, KC_LBRC, KC_RBRC, KC_HOME, KC_END, KC_ESC | ||
| 24 | ), | ||
| 25 | //Holding F | ||
| 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, | ||
| 28 | KC_LGUI, KC_NO, KC_NO, KC_NO, _______, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, | ||
| 29 | KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_RSFT, | ||
| 30 | KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_NO, KC_NO, KC_HOME, KC_END, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO | ||
| 31 | ), | ||
| 32 | //Holding J | ||
| 33 | [2] = LAYOUT( | ||
| 34 | KC_MUTE, KC_VOLD, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 35 | KC_NO, KC_MPRV, KC_MPLY, KC_MNXT, KC_NO, KC_NO, KC_NO, _______, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 36 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 37 | KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_F14, KC_F15, KC_ENT, KC_SPC, KC_NO, KC_NO, KC_NO, KC_NO, TG(3) | ||
| 38 | ), | ||
| 39 | //game layer | ||
| 40 | [3] = LAYOUT( | ||
| 41 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 42 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, LT(2,KC_J), KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 43 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 44 | KC_LCTL, KC_NO, KC_M, KC_GRV, KC_SPC, KC_BSPC, KC_DEL, KC_ENT, KC_SPC, KC_LBRC, KC_RBRC, KC_HOME, KC_END, TO(0) | ||
| 45 | ) | ||
| 46 | }; | ||
diff --git a/keyboards/nacly/sodium50/readme.md b/keyboards/nacly/sodium50/readme.md new file mode 100644 index 0000000000..8cd5e10e20 --- /dev/null +++ b/keyboards/nacly/sodium50/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # sodium keyboard | ||
| 2 | |||
| 3 | ## Your new favorite split columnar stagger | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [NaCly](https://github.com/Na-Cly) | ||
| 6 | * Hardware Supported: sodium50 PCBs, Pro Micro | ||
| 7 | * Hardware Availability: https://nacly.net | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make nacly/sodium50:default | ||
| 12 | |||
| 13 | ## Bootloader | ||
| 14 | |||
| 15 | Enter the bootloader in 2 ways: | ||
| 16 | |||
| 17 | * **Physical reset button**: Press the reset button twice | ||
| 18 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
| 19 | |||
| 20 | See 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/nacly/sodium50/rules.mk b/keyboards/nacly/sodium50/rules.mk new file mode 100644 index 0000000000..ea969e963f --- /dev/null +++ b/keyboards/nacly/sodium50/rules.mk | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
| 19 | |||
| 20 | SPLIT_KEYBOARD = yes \ No newline at end of file | ||
diff --git a/keyboards/nacly/sodium50/sodium50.c b/keyboards/nacly/sodium50/sodium50.c new file mode 100644 index 0000000000..74b2b5e16c --- /dev/null +++ b/keyboards/nacly/sodium50/sodium50.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 "sodium50.h" | ||
diff --git a/keyboards/nacly/sodium50/sodium50.h b/keyboards/nacly/sodium50/sodium50.h new file mode 100644 index 0000000000..c20ea9bc3b --- /dev/null +++ b/keyboards/nacly/sodium50/sodium50.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 LAYOUT(\ | ||
| 21 | L00, L01, L02, L03, L04, L05, R05, R04, R03, R02, R01, R00, \ | ||
| 22 | L10, L11, L12, L13, L14, L15, R15, R14, R13, R12, R11, R10, \ | ||
| 23 | L20, L21, L22, L23, L24, L25, R25, R24, R23, R22, R21, R20, \ | ||
| 24 | L30, L31, L32, L33, L34, L35, L36, R36, R35, R34, R33, R32, R31, R30 \ | ||
| 25 | )\ | ||
| 26 | {\ | ||
| 27 | { L00, L01, L02, L03, L04, L05, KC_NO }, \ | ||
| 28 | { L10, L11, L12, L13, L14, L15, KC_NO }, \ | ||
| 29 | { L20, L21, L22, L23, L24, L25, KC_NO }, \ | ||
| 30 | { L30, L31, L32, L33, L34, L35, L36 }, \ | ||
| 31 | \ | ||
| 32 | { R00, R01, R02, R03, R04, R05, KC_NO }, \ | ||
| 33 | { R10, R11, R12, R13, R14, R15, KC_NO }, \ | ||
| 34 | { R20, R21, R22, R23, R24, R25, KC_NO }, \ | ||
| 35 | { R30, R31, R32, R33, R34, R35, L36 } \ | ||
| 36 | } | ||
diff --git a/keyboards/nacly/sodium62/config.h b/keyboards/nacly/sodium62/config.h new file mode 100644 index 0000000000..b6140db5f6 --- /dev/null +++ b/keyboards/nacly/sodium62/config.h | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 0xBEEF | ||
| 23 | #define PRODUCT_ID 0xFED0 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER nacly | ||
| 26 | #define PRODUCT sodium62 | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | // Rows are doubled-up | ||
| 30 | #define MATRIX_ROWS 10 | ||
| 31 | #define MATRIX_COLS 7 | ||
| 32 | |||
| 33 | // wiring of each half | ||
| 34 | #define MATRIX_ROW_PINS { F7, D4, D7, B4, B6 } | ||
| 35 | #define MATRIX_COL_PINS { D2, C6, E6, B5, B2, B3, B1 } | ||
| 36 | |||
| 37 | #define DIODE_DIRECTION COL2ROW | ||
| 38 | |||
| 39 | #define SPLIT_HAND_PIN F4 | ||
| 40 | |||
| 41 | /* Set 0 if debouncing isn't needed */ | ||
| 42 | #define DEBOUNCE 5 | ||
| 43 | |||
| 44 | /* serial.c configuration for split keyboard */ | ||
| 45 | #define SOFT_SERIAL_PIN D3 | ||
| 46 | |||
| 47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 48 | #define LOCKING_SUPPORT_ENABLE | ||
| 49 | /* Locking resynchronize hack */ | ||
| 50 | #define LOCKING_RESYNC_ENABLE | ||
| 51 | #define OLED_BRIGHTNESS 128 | ||
| 52 | |||
| 53 | /* ws2812 RGB LED */ | ||
| 54 | //#define RGB_DI_PIN B1 | ||
| 55 | /* | ||
| 56 | #define RGBLED_NUM 12 // Number of LEDs | ||
| 57 | |||
| 58 | #define RGBLED_SPLIT { 6, 6 } | ||
| 59 | */ | ||
| 60 | /* | ||
| 61 | * Feature disable options | ||
| 62 | * These options are also useful to firmware size reduction. | ||
| 63 | */ | ||
| 64 | |||
| 65 | /* disable debug print */ | ||
| 66 | // #define NO_DEBUG | ||
| 67 | |||
| 68 | /* disable print */ | ||
| 69 | // #define NO_PRINT | ||
| 70 | |||
| 71 | /* disable action features */ | ||
| 72 | //#define NO_ACTION_LAYER | ||
| 73 | //#define NO_ACTION_TAPPING | ||
| 74 | //#define NO_ACTION_ONESHOT | ||
diff --git a/keyboards/nacly/sodium62/info.json b/keyboards/nacly/sodium62/info.json new file mode 100644 index 0000000000..f1dc474dcc --- /dev/null +++ b/keyboards/nacly/sodium62/info.json | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "sodium62", | ||
| 3 | "url": "https://nacly.net", | ||
| 4 | "maintainer": "nacly", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | {"x": 0, "y": 0.75}, | ||
| 9 | {"x": 1, "y": 0.75}, | ||
| 10 | {"x": 2, "y": 0.5}, | ||
| 11 | {"x": 3, "y": 0}, | ||
| 12 | {"x": 4, "y": 0.25}, | ||
| 13 | {"x": 5, "y": 1}, | ||
| 14 | |||
| 15 | {"x": 9.75, "y": 1}, | ||
| 16 | {"x": 10.75, "y": 0.5}, | ||
| 17 | {"x": 11.75, "y": 0}, | ||
| 18 | {"x": 12.75, "y": 0.5}, | ||
| 19 | {"x": 13.75, "y": 0.75}, | ||
| 20 | {"x": 14.75, "y": 0.75}, | ||
| 21 | |||
| 22 | {"x": 0, "y": 1.75}, | ||
| 23 | {"x": 1, "y": 1.75}, | ||
| 24 | {"x": 2, "y": 1.5}, | ||
| 25 | {"x": 3, "y": 1}, | ||
| 26 | {"x": 4, "y": 1.25}, | ||
| 27 | {"x": 5, "y": 2}, | ||
| 28 | |||
| 29 | {"x": 9.75, "y": 2}, | ||
| 30 | {"x": 10.75, "y": 1.5}, | ||
| 31 | {"x": 11.75, "y": 1}, | ||
| 32 | {"x": 12.75, "y": 1.5}, | ||
| 33 | {"x": 13.75, "y": 1.75}, | ||
| 34 | {"x": 14.75, "y": 1.75}, | ||
| 35 | |||
| 36 | {"x": 0, "y": 2.75}, | ||
| 37 | {"x": 1, "y": 2.75}, | ||
| 38 | {"x": 2, "y": 2.5}, | ||
| 39 | {"x": 3, "y": 2}, | ||
| 40 | {"x": 4, "y": 2.25}, | ||
| 41 | {"x": 5, "y": 3}, | ||
| 42 | |||
| 43 | {"x": 9.75, "y": 3}, | ||
| 44 | {"x": 10.75, "y": 2.5}, | ||
| 45 | {"x": 11.75, "y": 2}, | ||
| 46 | {"x": 12.75, "y": 2.5}, | ||
| 47 | {"x": 13.75, "y": 2.75}, | ||
| 48 | {"x": 14.75, "y": 2.75}, | ||
| 49 | |||
| 50 | {"x": 0, "y": 3.75}, | ||
| 51 | {"x": 1, "y": 3.75}, | ||
| 52 | {"x": 2, "y": 3.5}, | ||
| 53 | {"x": 3, "y": 3}, | ||
| 54 | {"x": 4, "y": 3.25}, | ||
| 55 | {"x": 5, "y": 4}, | ||
| 56 | |||
| 57 | {"x": 9.75, "y": 4}, | ||
| 58 | {"x": 10.75, "y": 3.5}, | ||
| 59 | {"x": 11.75, "y": 3}, | ||
| 60 | {"x": 12.75, "y": 3.5}, | ||
| 61 | {"x": 13.75, "y": 3.75}, | ||
| 62 | {"x": 14.75, "y": 3.75}, | ||
| 63 | |||
| 64 | {"x": 0, "y": 4.75}, | ||
| 65 | {"x": 1, "y": 4.75}, | ||
| 66 | {"x": 2, "y": 4.5}, | ||
| 67 | {"x": 3, "y": 4}, | ||
| 68 | {"x": 4, "y": 4.25}, | ||
| 69 | {"x": 5, "y": 5}, | ||
| 70 | {"x": 6, "y": 5.5}, | ||
| 71 | |||
| 72 | {"x": 8.75, "y": 5.5}, | ||
| 73 | {"x": 9.75, "y": 5}, | ||
| 74 | {"x": 10.75, "y": 4.5}, | ||
| 75 | {"x": 11.75, "y": 4}, | ||
| 76 | {"x": 12.75, "y": 4.5}, | ||
| 77 | {"x": 13.75, "y": 4.75}, | ||
| 78 | {"x": 14.75, "y": 4.75} | ||
| 79 | ] | ||
| 80 | } | ||
| 81 | } | ||
| 82 | } \ No newline at end of file | ||
diff --git a/keyboards/nacly/sodium62/keymaps/default/keymap.c b/keyboards/nacly/sodium62/keymaps/default/keymap.c new file mode 100644 index 0000000000..f655241876 --- /dev/null +++ b/keyboards/nacly/sodium62/keymaps/default/keymap.c | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 | |||
| 18 | enum custom_layers { | ||
| 19 | _BASE, | ||
| 20 | _L1, | ||
| 21 | _L2, | ||
| 22 | _L3, | ||
| 23 | }; | ||
| 24 | |||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | [0] = LAYOUT( | ||
| 27 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, | ||
| 28 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 29 | KC_LGUI, KC_A, KC_S, KC_D, LT(1,KC_F), KC_G, KC_H, LT(2,KC_J), KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 31 | KC_LCTL, KC_LGUI, KC_LALT, KC_GRV, KC_EQL, KC_BSPC, KC_DEL, KC_ENT, KC_SPC, KC_LBRC, KC_RBRC, KC_HOME, KC_END, KC_ESC | ||
| 32 | ), | ||
| 33 | //Holding F | ||
| 34 | [1] = LAYOUT( | ||
| 35 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 36 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 37 | KC_LGUI, KC_NO, KC_NO, KC_NO, _______, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, | ||
| 38 | KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_RSFT, | ||
| 39 | KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_NO, KC_NO, KC_HOME, KC_END, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO | ||
| 40 | ), | ||
| 41 | //Holding J | ||
| 42 | [2] = LAYOUT( | ||
| 43 | KC_MUTE, KC_VOLD, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 44 | KC_NO, KC_MPRV, KC_MPLY, KC_MNXT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 45 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, _______, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 46 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 47 | KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_F14, KC_F15, KC_ENT, KC_SPC, KC_NO, KC_NO, KC_NO, KC_NO, TG(3) | ||
| 48 | ), | ||
| 49 | //game layer | ||
| 50 | [3] = LAYOUT( | ||
| 51 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, | ||
| 52 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 53 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, LT(2,KC_J), KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 54 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 55 | KC_LCTL, KC_NO, KC_M, KC_GRV, KC_SPC, KC_BSPC, KC_DEL, KC_ENT, KC_SPC, KC_LBRC, KC_RBRC, KC_HOME, KC_END, TO(0) | ||
| 56 | ) | ||
| 57 | }; | ||
diff --git a/keyboards/nacly/sodium62/readme.md b/keyboards/nacly/sodium62/readme.md new file mode 100644 index 0000000000..315f6cd987 --- /dev/null +++ b/keyboards/nacly/sodium62/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # sodium keyboard | ||
| 2 | |||
| 3 | ## Your new favorite split columnar stagger | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [NaCly](https://github.com/Na-Cly) | ||
| 6 | * Hardware Supported: sodium62 PCBs, Pro Micro | ||
| 7 | * Hardware Availability: https://nacly.net | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make nacly/sodium62:default | ||
| 12 | |||
| 13 | ## Bootloader | ||
| 14 | |||
| 15 | Enter the bootloader in 2 ways: | ||
| 16 | |||
| 17 | * **Physical reset button**: Press the reset button twice | ||
| 18 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
| 19 | |||
| 20 | |||
| 21 | See 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/nacly/sodium62/rules.mk b/keyboards/nacly/sodium62/rules.mk new file mode 100644 index 0000000000..f7e87175ac --- /dev/null +++ b/keyboards/nacly/sodium62/rules.mk | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
| 19 | |||
| 20 | SPLIT_KEYBOARD = yes | ||
| 21 | OLED_ENABLE = yes | ||
diff --git a/keyboards/nacly/sodium62/sodium62.c b/keyboards/nacly/sodium62/sodium62.c new file mode 100644 index 0000000000..d165bc1f2f --- /dev/null +++ b/keyboards/nacly/sodium62/sodium62.c | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 "sodium62.h" | ||
| 17 | |||
| 18 | #ifdef OLED_ENABLE | ||
| 19 | bool oled_task_kb(void) { | ||
| 20 | if (!oled_task_user()) { | ||
| 21 | return false; | ||
| 22 | } | ||
| 23 | // Host Keyboard Layer Status | ||
| 24 | oled_write_P(PSTR("Layer: "), false); | ||
| 25 | |||
| 26 | switch (get_highest_layer(layer_state)) { | ||
| 27 | case _BASE: | ||
| 28 | oled_write_P(PSTR("Base\n"), false); | ||
| 29 | break; | ||
| 30 | case _L1: | ||
| 31 | oled_write_P(PSTR("ONE\n"), false); | ||
| 32 | break; | ||
| 33 | case _L2: | ||
| 34 | oled_write_P(PSTR("TWO\n"), false); | ||
| 35 | break; | ||
| 36 | case _L3: | ||
| 37 | oled_write_P(PSTR("Three\n"), false); | ||
| 38 | break; | ||
| 39 | default: | ||
| 40 | // Or use the write_ln shortcut over adding '\n' to the end of your string | ||
| 41 | oled_write_ln_P(PSTR("Undefined"), false); | ||
| 42 | } | ||
| 43 | |||
| 44 | // Host Keyboard LED Status | ||
| 45 | led_t led_state = host_keyboard_led_state(); | ||
| 46 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | ||
| 47 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | ||
| 48 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | ||
| 49 | |||
| 50 | return true; | ||
| 51 | } | ||
| 52 | #endif | ||
diff --git a/keyboards/nacly/sodium62/sodium62.h b/keyboards/nacly/sodium62/sodium62.h new file mode 100644 index 0000000000..7db1002333 --- /dev/null +++ b/keyboards/nacly/sodium62/sodium62.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* Copyright 2022 NaCly | ||
| 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 LAYOUT(\ | ||
| 21 | L00, L01, L02, L03, L04, L05, R05, R04, R03, R02, R01, R00, \ | ||
| 22 | L10, L11, L12, L13, L14, L15, R15, R14, R13, R12, R11, R10, \ | ||
| 23 | L20, L21, L22, L23, L24, L25, R25, R24, R23, R22, R21, R20, \ | ||
| 24 | L30, L31, L32, L33, L34, L35, R35, R34, R33, R32, R31, R30, \ | ||
| 25 | L40, L41, L42, L43, L44, L45, L46, R46, R45, R44, R43, R42, R41, R40 \ | ||
| 26 | )\ | ||
| 27 | {\ | ||
| 28 | { L00, L01, L02, L03, L04, L05, KC_NO }, \ | ||
| 29 | { L10, L11, L12, L13, L14, L15, KC_NO }, \ | ||
| 30 | { L20, L21, L22, L23, L24, L25, KC_NO }, \ | ||
| 31 | { L30, L31, L32, L33, L34, L35, KC_NO }, \ | ||
| 32 | { L40, L41, L42, L43, L44, L45, L46 }, \ | ||
| 33 | \ | ||
| 34 | { R00, R01, R02, R03, R04, R05, KC_NO }, \ | ||
| 35 | { R10, R11, R12, R13, R14, R15, KC_NO }, \ | ||
| 36 | { R20, R21, R22, R23, R24, R25, KC_NO }, \ | ||
| 37 | { R30, R31, R32, R33, R34, R35, KC_NO }, \ | ||
| 38 | { R40, R41, R42, R43, R44, R45, R46 } \ | ||
| 39 | } | ||
