diff options
| author | Stan Gurenkov <klausflex@gmail.com> | 2021-09-24 13:05:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-24 10:05:29 -0700 |
| commit | 4493a05b74d8852222faa776d140233745114c53 (patch) | |
| tree | a7f272534946d9f7098e57d5e022c7f74fe34ef4 | |
| parent | 60b13d04cdf4b27f387be90d830dd196c38b1362 (diff) | |
| download | qmk_firmware-4493a05b74d8852222faa776d140233745114c53.tar.gz qmk_firmware-4493a05b74d8852222faa776d140233745114c53.zip | |
[Keyboard] refactor signum30 (#14527)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Stan Gurenkov <stan.gurenkov@docusign.com>
22 files changed, 345 insertions, 62 deletions
diff --git a/keyboards/signum/3_0/config.h b/keyboards/signum/3_0/config.h new file mode 100644 index 000000000..d0c3175d0 --- /dev/null +++ b/keyboards/signum/3_0/config.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* Copyright 2021 Stan Gurenkov <rococo04_fox@icloud.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "config_common.h" | ||
| 19 | |||
| 20 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0xFEED | ||
| 22 | #define PRODUCT_ID 0x6060 | ||
| 23 | #define DEVICE_VER 0x0001 | ||
| 24 | #define MANUFACTURER Troy Fletcher | ||
| 25 | #define PRODUCT Signum30 | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 4 | ||
| 29 | #define MATRIX_COLS 12 | ||
| 30 | |||
| 31 | /* COL2ROW or ROW2COL */ | ||
| 32 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/signum/3_0/elitec/config.h b/keyboards/signum/3_0/elitec/config.h index f86e6748a..fdbfac3c9 100644 --- a/keyboards/signum/3_0/elitec/config.h +++ b/keyboards/signum/3_0/elitec/config.h | |||
| @@ -2,29 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | #include "config_common.h" | 3 | #include "config_common.h" |
| 4 | 4 | ||
| 5 | /* USB Device descriptor parameter */ | ||
| 6 | #define VENDOR_ID 0xF1E7 | ||
| 7 | #define PRODUCT_ID 0x5163 | ||
| 8 | #define DEVICE_VER 0x0000 | ||
| 9 | #define MANUFACTURER troyfletcher | ||
| 10 | #define PRODUCT Signum | ||
| 11 | |||
| 12 | /* mouse settings */ | ||
| 13 | #define MK_KINETIC_SPEED | ||
| 14 | |||
| 15 | /* key matrix size */ | ||
| 16 | #define MATRIX_ROWS 4 | ||
| 17 | #define MATRIX_COLS 12 | ||
| 18 | |||
| 19 | /* key matrix pins */ | 5 | /* key matrix pins */ |
| 20 | #define MATRIX_ROW_PINS { D2, D1, F5, B5 } | 6 | #define MATRIX_ROW_PINS { D2, D1, F5, B5 } |
| 21 | #define MATRIX_COL_PINS { B4, D7, D0, E6, D4, F6, F4, F7, B1, B3, C6, B2 } | 7 | #define MATRIX_COL_PINS { B4, D7, D0, E6, D4, F6, F4, F7, B1, B3, C6, B2 } |
| 22 | #define UNUSED_PINS | 8 | #define UNUSED_PINS |
| 23 | |||
| 24 | #define DIODE_DIRECTION COL2ROW | ||
| 25 | |||
| 26 | /* Set 0 if debouncing isn't needed */ | ||
| 27 | #define DEBOUNCE 5 | ||
| 28 | |||
| 29 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 30 | #define LOCKING_SUPPORT_ENABLE | ||
diff --git a/keyboards/signum/3_0/elitec/elitec.h b/keyboards/signum/3_0/elitec/elitec.h index d28d3d476..7498fdcee 100644 --- a/keyboards/signum/3_0/elitec/elitec.h +++ b/keyboards/signum/3_0/elitec/elitec.h | |||
| @@ -1,15 +1,4 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #include "quantum.h" | 3 | #include "quantum.h" |
| 4 | 4 | #include "signum.h" | |
| 5 | #define LAYOUT_ortho_4x12( \ | ||
| 6 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ | ||
| 7 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \ | ||
| 8 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, \ | ||
| 9 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311 \ | ||
| 10 | ) { \ | ||
| 11 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \ | ||
| 12 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111 }, \ | ||
| 13 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211 }, \ | ||
| 14 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311 } \ | ||
| 15 | } | ||
diff --git a/keyboards/signum/3_0/elitec/rules.mk b/keyboards/signum/3_0/elitec/rules.mk index 65714ef39..e69de29bb 100644 --- a/keyboards/signum/3_0/elitec/rules.mk +++ b/keyboards/signum/3_0/elitec/rules.mk | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # comment out to disable the options. | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # 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 = no # Commands for debug and configuration | ||
| 15 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 16 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 18 | AUDIO_ENABLE = no | ||
| 19 | RGBLIGHT_ENABLE = no | ||
| 20 | |||
| 21 | UNICODEMAP_ENABLE = no | ||
| 22 | |||
| 23 | LAYOUTS = ortho_4x12 | ||
| 24 | |||
| 25 | # Disable unsupported hardware | ||
| 26 | RGBLIGHT_SUPPORTED = no | ||
| 27 | AUDIO_SUPPORTED = no | ||
| 28 | BACKLIGHT_SUPPORTED = no | ||
diff --git a/keyboards/signum/3_0/elitec/info.json b/keyboards/signum/3_0/info.json index a3f14c480..a3f14c480 100644 --- a/keyboards/signum/3_0/elitec/info.json +++ b/keyboards/signum/3_0/info.json | |||
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py b/keyboards/signum/3_0/keymaps/default/generate_km.py index cfa8edf57..cfa8edf57 100755 --- a/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py +++ b/keyboards/signum/3_0/keymaps/default/generate_km.py | |||
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/keymap.c b/keyboards/signum/3_0/keymaps/default/keymap.c index 15cf21530..15cf21530 100644 --- a/keyboards/signum/3_0/elitec/keymaps/default/keymap.c +++ b/keyboards/signum/3_0/keymaps/default/keymap.c | |||
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/km_template.txt b/keyboards/signum/3_0/keymaps/default/km_template.txt index 47b35ee51..47b35ee51 100644 --- a/keyboards/signum/3_0/elitec/keymaps/default/km_template.txt +++ b/keyboards/signum/3_0/keymaps/default/km_template.txt | |||
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/layout.py b/keyboards/signum/3_0/keymaps/default/layout.py index 1e43e25c5..1e43e25c5 100644 --- a/keyboards/signum/3_0/elitec/keymaps/default/layout.py +++ b/keyboards/signum/3_0/keymaps/default/layout.py | |||
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/readme.md b/keyboards/signum/3_0/keymaps/default/readme.md index be8cc30e8..be8cc30e8 100644 --- a/keyboards/signum/3_0/elitec/keymaps/default/readme.md +++ b/keyboards/signum/3_0/keymaps/default/readme.md | |||
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/rules.mk b/keyboards/signum/3_0/keymaps/default/rules.mk index 502b2def7..502b2def7 100644 --- a/keyboards/signum/3_0/elitec/keymaps/default/rules.mk +++ b/keyboards/signum/3_0/keymaps/default/rules.mk | |||
diff --git a/keyboards/signum/3_0/keymaps/sgurenkov/config.h b/keyboards/signum/3_0/keymaps/sgurenkov/config.h new file mode 100644 index 000000000..5f8d0d02b --- /dev/null +++ b/keyboards/signum/3_0/keymaps/sgurenkov/config.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /* Copyright 2021 Stan Gurenkov <rococo04_fox@icloud.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #define ONESHOT_TAP_TOGGLE 2 | ||
| 19 | #define ONESHOT_TIMEOUT 5000 | ||
| 20 | #define LEADER_TIMEOUT 600 | ||
| 21 | #define LEADER_PER_KEY_TIMING 300 | ||
| 22 | |||
| 23 | // default but used in macros | ||
| 24 | #define TAPPING_TERM 300 | ||
| 25 | |||
| 26 | // Prevent normal rollover on alphas from accidentally triggering mods. | ||
| 27 | #define IGNORE_MOD_TAP_INTERRUPT | ||
| 28 | |||
| 29 | // Auto Shift and Retro Shift (Auto Shift for Tap Hold). | ||
| 30 | #define AUTO_SHIFT_TIMEOUT TAPPING_TERM | ||
| 31 | |||
| 32 | // Recommended for heavy chording. | ||
| 33 | #define QMK_KEYS_PER_SCAN 4 | ||
| 34 | |||
| 35 | // Mouse key speed and acceleration. | ||
| 36 | #undef MOUSEKEY_DELAY | ||
| 37 | #define MOUSEKEY_DELAY 0 | ||
| 38 | #undef MOUSEKEY_INTERVAL | ||
| 39 | #define MOUSEKEY_INTERVAL 16 | ||
| 40 | #undef MOUSEKEY_WHEEL_DELAY | ||
| 41 | #define MOUSEKEY_WHEEL_DELAY 0 | ||
| 42 | #undef MOUSEKEY_MAX_SPEED | ||
| 43 | #define MOUSEKEY_MAX_SPEED 6 | ||
| 44 | #undef MOUSEKEY_TIME_TO_MAX | ||
| 45 | #define MOUSEKEY_TIME_TO_MAX 64 | ||
diff --git a/keyboards/signum/3_0/keymaps/sgurenkov/keymap.c b/keyboards/signum/3_0/keymaps/sgurenkov/keymap.c new file mode 100644 index 000000000..f6cdcfd24 --- /dev/null +++ b/keyboards/signum/3_0/keymaps/sgurenkov/keymap.c | |||
| @@ -0,0 +1,128 @@ | |||
| 1 | /* Copyright 2021 Stan Gurenkov <rococo04_fox@icloud.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | #define M0(kc) MT(MOD_HYPR, kc) | ||
| 19 | #define M1(kc) MT(MOD_LGUI, kc) | ||
| 20 | #define M2(kc) MT(MOD_LCTL, kc) | ||
| 21 | #define M3(kc) MT(MOD_LALT, kc) | ||
| 22 | #define M4(kc) MT(MOD_LSFT, kc) | ||
| 23 | #define LTH1 LT(L_LEFT, KC_SPC) | ||
| 24 | #define LTH2 LT(L_NUM, KC_BSPC) | ||
| 25 | #define RTH1 LT(L_RIGHT, KC_SPC) | ||
| 26 | #define RTH2 LT(L_NUM, KC_ENT) | ||
| 27 | #define COPY LCMD(KC_C) | ||
| 28 | #define PASTE LCMD(KC_V) | ||
| 29 | // Layers | ||
| 30 | #define L_BASE 0 | ||
| 31 | #define L_LEFT 1 | ||
| 32 | #define L_RIGHT 2 | ||
| 33 | #define L_NUM 3 | ||
| 34 | |||
| 35 | bool is_cmd_tab_active = false; | ||
| 36 | |||
| 37 | enum custom_keycodes { | ||
| 38 | CMD_TAB = SAFE_RANGE, | ||
| 39 | }; | ||
| 40 | // clang-format off | ||
| 41 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 42 | // L_BASE | ||
| 43 | LAYOUT( | ||
| 44 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, | ||
| 45 | KC_TAB, M4(KC_A), M3(KC_S), M2(KC_D), M1(KC_F), M0(KC_G), M0(KC_H), M1(KC_J), M2(KC_K), M3(KC_L), M4(KC_COLN), KC_QUOT, | ||
| 46 | KC_GRV, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_BSLS, | ||
| 47 | OSM(MOD_LSFT), KC_LEAD, KC_LGUI, LTH1, XXXXXXX, LTH2, RTH2, XXXXXXX, RTH1, KC_RGUI, KC_LEAD, OSM(MOD_HYPR)), | ||
| 48 | |||
| 49 | // L_LEFT | ||
| 50 | LAYOUT( | ||
| 51 | _______, XXXXXXX, XXXXXXX, KC_EQL, KC_PERC, KC_AT, COPY, KC_UNDS, KC_HASH, RALT(KC_SPC), KC_PLUS, _______, | ||
| 52 | _______, KC_LSHIFT, KC_LALT, KC_LCTL, KC_LGUI, KC_HYPR, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_LBRC, KC_RBRC, | ||
| 53 | _______, XXXXXXX, KC_EXLM, KC_CIRC, XXXXXXX, KC_HOME, KC_END, KC_MINS, KC_LPRN, KC_RPRN, PASTE, XXXXXXX, | ||
| 54 | _______, KC_BRID, KC_BRIU, _______, _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU, _______), | ||
| 55 | |||
| 56 | // L_RIGHT | ||
| 57 | LAYOUT( | ||
| 58 | _______, XXXXXXX, XXXXXXX, KC_EQL, KC_PERC, KC_AT, COPY, KC_UNDS, KC_HASH, RALT(KC_SPC), KC_PLUS, _______, | ||
| 59 | _______, KC_AMPR, KC_ASTR, KC_DLR, LGUI(KC_GRV), XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_RSFT, KC_RBRC, | ||
| 60 | _______, XXXXXXX, KC_EXLM, KC_CIRC, XXXXXXX, KC_HOME, KC_END, KC_MINS, KC_LPRN, KC_RPRN, PASTE, XXXXXXX, | ||
| 61 | _______, KC_BRID, KC_BRIU, _______, _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU, _______), | ||
| 62 | |||
| 63 | // L_NUM | ||
| 64 | LAYOUT( | ||
| 65 | _______, XXXXXXX, KC_F7, KC_F8, KC_F9, KC_F12, KC_MINS, KC_7, KC_8, KC_9, KC_COMM, _______, | ||
| 66 | _______, M4(KC_LSFT), M3(KC_F4), M2(KC_F5), M1(KC_F6), M0(KC_F11), M0(KC_DOT), M1(KC_4), M2(KC_5), M3(KC_6), M4(KC_0), _______, | ||
| 67 | _______, XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F10, KC_PLUS, KC_1, KC_2, KC_3, KC_DOT, _______, | ||
| 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MEDIA_PREV_TRACK , KC_MEDIA_NEXT_TRACK, KC_MEDIA_PLAY_PAUSE), | ||
| 69 | |||
| 70 | LAYOUT( | ||
| 71 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 72 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 73 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 74 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), | ||
| 75 | }; | ||
| 76 | // clang-format on | ||
| 77 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 78 | switch (keycode) { | ||
| 79 | case CMD_TAB: | ||
| 80 | if (record->event.pressed) { | ||
| 81 | register_code(KC_LCMD); | ||
| 82 | tap_code(KC_TAB); | ||
| 83 | layer_on(2); | ||
| 84 | } else { | ||
| 85 | unregister_code(KC_LCMD); | ||
| 86 | layer_off(2); | ||
| 87 | } | ||
| 88 | break; | ||
| 89 | case KC_ESC: | ||
| 90 | layer_clear(); | ||
| 91 | } | ||
| 92 | return true; | ||
| 93 | } | ||
| 94 | |||
| 95 | LEADER_EXTERNS(); | ||
| 96 | |||
| 97 | void matrix_scan_user(void) { | ||
| 98 | LEADER_DICTIONARY() { | ||
| 99 | leading = false; | ||
| 100 | leader_end(); | ||
| 101 | |||
| 102 | // Cancel task CTRL+C | ||
| 103 | SEQ_ONE_KEY(KC_C) { tap_code16(C(KC_C)); } | ||
| 104 | // copy | ||
| 105 | SEQ_ONE_KEY(KC_Y) { tap_code16(G(KC_C)); } | ||
| 106 | // cut | ||
| 107 | SEQ_ONE_KEY(KC_X) { tap_code16(G(KC_X)); } | ||
| 108 | // paste | ||
| 109 | SEQ_ONE_KEY(KC_P) { tap_code16(G(KC_V)); } | ||
| 110 | // undo | ||
| 111 | SEQ_ONE_KEY(KC_U) { tap_code16(G(KC_Z)); } | ||
| 112 | // redo | ||
| 113 | SEQ_ONE_KEY(KC_R) { tap_code16(S(G(KC_Z))); } | ||
| 114 | // delete line | ||
| 115 | SEQ_TWO_KEYS(KC_D, KC_D) { | ||
| 116 | register_code(KC_LGUI); | ||
| 117 | |||
| 118 | tap_code(KC_RIGHT); | ||
| 119 | |||
| 120 | tap_code(KC_BSPACE); | ||
| 121 | |||
| 122 | unregister_code(KC_LGUI); | ||
| 123 | } | ||
| 124 | // go to the beginning of the string | ||
| 125 | SEQ_ONE_KEY(KC_H) { tap_code16(G(KC_LEFT)); } | ||
| 126 | // go to the end of the string | ||
| 127 | SEQ_ONE_KEY(KC_L) { tap_code16(G(KC_RIGHT)); } | ||
| 128 | } | ||
diff --git a/keyboards/signum/3_0/keymaps/sgurenkov/rules.mk b/keyboards/signum/3_0/keymaps/sgurenkov/rules.mk new file mode 100644 index 000000000..5c9a4b49b --- /dev/null +++ b/keyboards/signum/3_0/keymaps/sgurenkov/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | LEADER_ENABLE = yes | ||
| 2 | AUTO_SHIFT_ENABLE = no | ||
diff --git a/keyboards/signum/3_0/elitec/readme.md b/keyboards/signum/3_0/readme.md index f60023f6d..3e937f771 100644 --- a/keyboards/signum/3_0/elitec/readme.md +++ b/keyboards/signum/3_0/readme.md | |||
| @@ -10,5 +10,6 @@ Hardware available here: [Troy Fletcher](http://troyfletcher.net/keyboard_sales. | |||
| 10 | Make example for this keyboard (after setting up your build environment): | 10 | Make example for this keyboard (after setting up your build environment): |
| 11 | 11 | ||
| 12 | make signum/3_0/elitec:default | 12 | make signum/3_0/elitec:default |
| 13 | make signum/3_0/teensy:default | ||
| 13 | 14 | ||
| 14 | 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). | 15 | 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/signum/3_0/rules.mk b/keyboards/signum/3_0/rules.mk new file mode 100644 index 000000000..a2f2bc9c0 --- /dev/null +++ b/keyboards/signum/3_0/rules.mk | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 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 = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_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 | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | AUDIO_ENABLE = no # Audio output | ||
| 22 | |||
| 23 | LAYOUTS = ortho_4x12 | ||
| 24 | |||
| 25 | # Disable unsupported hardware | ||
| 26 | RGBLIGHT_SUPPORTED = no | ||
| 27 | AUDIO_SUPPORTED = no | ||
| 28 | BACKLIGHT_SUPPORTED = no | ||
diff --git a/keyboards/signum/3_0/signum.c b/keyboards/signum/3_0/signum.c new file mode 100644 index 000000000..b74bd52b2 --- /dev/null +++ b/keyboards/signum/3_0/signum.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2021 Stan Gurenkov <rococo04_fox@icloud.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include "signum.h" | ||
diff --git a/keyboards/signum/3_0/signum.h b/keyboards/signum/3_0/signum.h new file mode 100644 index 000000000..9322b44b8 --- /dev/null +++ b/keyboards/signum/3_0/signum.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2021 Stan Gurenkov <rococo04_fox@icloud.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | // clang-format off | ||
| 21 | # define LAYOUT( \ | ||
| 22 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ | ||
| 23 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \ | ||
| 24 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, \ | ||
| 25 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311 \ | ||
| 26 | ) { \ | ||
| 27 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \ | ||
| 28 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111 }, \ | ||
| 29 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211 }, \ | ||
| 30 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311 } \ | ||
| 31 | } | ||
| 32 | // clang-format on | ||
| 33 | #define LAYOUT_ortho_4x12 LAYOUT | ||
diff --git a/keyboards/signum/3_0/teensy/config.h b/keyboards/signum/3_0/teensy/config.h new file mode 100644 index 000000000..343131fce --- /dev/null +++ b/keyboards/signum/3_0/teensy/config.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright 2021 Stan Gurenkov <rococo04_fox@icloud.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | /* key matrix pins */ | ||
| 19 | // clang-format off | ||
| 20 | #define MATRIX_ROW_PINS { B0, B3, F6, C7 } | ||
| 21 | #define MATRIX_COL_PINS { C6, D2, B7, D3, D0, F7, F5, B6, B5, B4, D1, D7 } | ||
| 22 | #define UNUSED_PINS | ||
| 23 | // clang-format on | ||
diff --git a/keyboards/signum/3_0/teensy/rules.mk b/keyboards/signum/3_0/teensy/rules.mk new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/keyboards/signum/3_0/teensy/rules.mk | |||
| @@ -0,0 +1 @@ | |||
diff --git a/keyboards/signum/3_0/teensy/teensy.c b/keyboards/signum/3_0/teensy/teensy.c new file mode 100644 index 000000000..42e993a6b --- /dev/null +++ b/keyboards/signum/3_0/teensy/teensy.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2021 Stan Gurenkov <rococo04_fox@icloud.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include "teensy.h" | ||
diff --git a/keyboards/signum/3_0/teensy/teensy.h b/keyboards/signum/3_0/teensy/teensy.h new file mode 100644 index 000000000..ac02c3cbe --- /dev/null +++ b/keyboards/signum/3_0/teensy/teensy.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2021 Stan Gurenkov <rococo04_fox@icloud.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | #include "signum.h" | ||
