diff options
| author | Monksoffunk <monksoffunk@users.noreply.github.com> | 2020-12-30 06:13:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-29 21:13:35 +0000 |
| commit | 25d9cdc88fa990251c5528d07027448c7c801f58 (patch) | |
| tree | 795eede157ed3c1d0d4f043f09eb9c7dd3c48dde /keyboards/aleth42 | |
| parent | 962b8d38141e60bfc4141e1e0aea60ca00901589 (diff) | |
| download | qmk_firmware-25d9cdc88fa990251c5528d07027448c7c801f58.tar.gz qmk_firmware-25d9cdc88fa990251c5528d07027448c7c801f58.zip | |
Add ALETH42 keyboard (#10720)
* Add Aleth42 keyboard
* Fix Rotary Encoder Section
* Add VIA keymap
* Fix VIA keymap
remove RETRO_TAPPING define because of incompatiblity of rotary encoders with layer tapping.
change KC_ESC to KC_GESC
* Change TAPPING definitions
Comment TAPPING_TERM
Remove RETRO_TAPPING
* Add rev1
Add new rev1 directory
Move previous files to rev0
* Add define of ENCODER_RESOLUTION
* Change number of RGBLED
* Change USB descriptor param
Change VID, PID and product name
* Change default and via keymaps
* Remove upper keymap
* Add readme
* Change USB descriptor param
VID 0x04D8 PID 0xEAC8
Manufacturer 25KEYS
rev0 -> 0x0000 rev1 -> 0x0001
Remove define DESCRIPTION
* Fix info.json
Remove info,json under /rev0 /rev1
Add correct info.json at keyboard/aleth42/
* Change keymaps
* Remove unnecessary comments
* Change BOOTMAGIC option
* Change config options
* Fix readme files
* Change keymap readme files
* Change to use get_highest_layer
* Update keyboards/aleth42/keymaps/default/keymap.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/default/keymap.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/default/keymap.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/default/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/default/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/default/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/via/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/via/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/via/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Use tap_code16 function
* Remove empty config file
* Update keyboards/aleth42/keymaps/default/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/default/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/default/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/default/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/default/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/via/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/via/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/via/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/aleth42/keymaps/via/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/aleth42')
| -rw-r--r-- | keyboards/aleth42/info.json | 54 | ||||
| -rw-r--r-- | keyboards/aleth42/keymaps/default/keymap.c | 149 | ||||
| -rw-r--r-- | keyboards/aleth42/keymaps/default/readme.md | 50 | ||||
| -rw-r--r-- | keyboards/aleth42/keymaps/via/config.h | 22 | ||||
| -rw-r--r-- | keyboards/aleth42/keymaps/via/keymap.c | 149 | ||||
| -rw-r--r-- | keyboards/aleth42/keymaps/via/readme.md | 56 | ||||
| -rw-r--r-- | keyboards/aleth42/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/aleth42/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/aleth42/rev0/config.h | 82 | ||||
| -rw-r--r-- | keyboards/aleth42/rev0/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/aleth42/rev0/rev0.c | 17 | ||||
| -rw-r--r-- | keyboards/aleth42/rev0/rev0.h | 54 | ||||
| -rw-r--r-- | keyboards/aleth42/rev0/rules.mk | 22 | ||||
| -rw-r--r-- | keyboards/aleth42/rev1/config.h | 82 | ||||
| -rw-r--r-- | keyboards/aleth42/rev1/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/aleth42/rev1/rev1.c | 17 | ||||
| -rw-r--r-- | keyboards/aleth42/rev1/rev1.h | 54 | ||||
| -rw-r--r-- | keyboards/aleth42/rev1/rules.mk | 22 | ||||
| -rw-r--r-- | keyboards/aleth42/rules.mk | 1 |
19 files changed, 878 insertions, 0 deletions
diff --git a/keyboards/aleth42/info.json b/keyboards/aleth42/info.json new file mode 100644 index 000000000..852c94bb0 --- /dev/null +++ b/keyboards/aleth42/info.json | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "aleth42", | ||
| 3 | "url": "http://www.sho-k.co.uk/tech/aleth42", | ||
| 4 | "maintainer": "monksoffunk", | ||
| 5 | "width": 12, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":0, "y":0}, | ||
| 11 | {"x":1, "y":0}, | ||
| 12 | {"x":2, "y":0}, | ||
| 13 | {"x":3, "y":0}, | ||
| 14 | {"x":4, "y":0}, | ||
| 15 | {"x":5, "y":0}, | ||
| 16 | {"x":6, "y":0}, | ||
| 17 | {"x":7, "y":0}, | ||
| 18 | {"x":8, "y":0}, | ||
| 19 | {"x":9, "y":0}, | ||
| 20 | {"x":10, "y":0}, | ||
| 21 | {"x":11, "y":0}, | ||
| 22 | {"x":0, "y":1, "w":1.25}, | ||
| 23 | {"x":1.25, "y":1}, | ||
| 24 | {"x":2.25, "y":1}, | ||
| 25 | {"x":3.25, "y":1}, | ||
| 26 | {"x":4.25, "y":1}, | ||
| 27 | {"x":5.25, "y":1}, | ||
| 28 | {"x":6.25, "y":1}, | ||
| 29 | {"x":7.25, "y":1}, | ||
| 30 | {"x":8.25, "y":1}, | ||
| 31 | {"x":9.25, "y":1}, | ||
| 32 | {"x":10.25, "y":1, "w":1.75}, | ||
| 33 | {"x":0, "y":2, "w":1.75}, | ||
| 34 | {"x":1.75, "y":2}, | ||
| 35 | {"x":2.75, "y":2}, | ||
| 36 | {"x":3.75, "y":2}, | ||
| 37 | {"x":4.75, "y":2}, | ||
| 38 | {"x":5.75, "y":2}, | ||
| 39 | {"x":6.75, "y":2}, | ||
| 40 | {"x":7.75, "y":2}, | ||
| 41 | {"x":8.75, "y":2}, | ||
| 42 | {"x":9.75, "y":2}, | ||
| 43 | {"x":10.75, "y":2, "w":1.25}, | ||
| 44 | {"x":0, "y":3, "w":1.25}, | ||
| 45 | {"x":1.25, "y":3}, | ||
| 46 | {"x":2.25, "y":3, "w":1.25}, | ||
| 47 | {"x":3.5, "y":3, "w":2.75}, | ||
| 48 | {"x":6.25, "y":3, "w":2.25}, | ||
| 49 | {"x":8.5, "y":3, "w":1.25}, | ||
| 50 | {"x":9.75, "y":3}, | ||
| 51 | {"x":10.75, "y":3, "w":1.25}] | ||
| 52 | } | ||
| 53 | } | ||
| 54 | } \ No newline at end of file | ||
diff --git a/keyboards/aleth42/keymaps/default/keymap.c b/keyboards/aleth42/keymaps/default/keymap.c new file mode 100644 index 000000000..48214d1e2 --- /dev/null +++ b/keyboards/aleth42/keymaps/default/keymap.c | |||
| @@ -0,0 +1,149 @@ | |||
| 1 | /* Copyright 2020 monksoffunk | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _QWERTY, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST, | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | enum custom_keycodes { | ||
| 28 | QWERTY = SAFE_RANGE, | ||
| 29 | LOWER, | ||
| 30 | RAISE, | ||
| 31 | ADJUST, | ||
| 32 | }; | ||
| 33 | |||
| 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 35 | /* Default Layer | ||
| 36 | * ,-----------------------------------------------------------. | ||
| 37 | * | Esc| Q | W | E | R | T | Y | U | I | O | P | BS | | ||
| 38 | * |-----------------------------------------------------------| | ||
| 39 | * | Tab | A | S | D | F | G | H | J | K | L | Ent | | ||
| 40 | * |-----------------------------------------------------------| | ||
| 41 | * | LSft | Z | X | C | V | B | N | M | , | . |fn(/)| | ||
| 42 | * |-----------------------------------------------------------| | ||
| 43 | * | LCtl | LAlt| LGui| spc fn0 | spc fn1 |RGui|RAlt|RCtl| | ||
| 44 | * `-----------------------------------------------------------' | ||
| 45 | */ | ||
| 46 | [_QWERTY] = LAYOUT( | ||
| 47 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 48 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
| 49 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, LT(_ADJUST, KC_SLSH), | ||
| 50 | KC_LCTL, KC_LALT , KC_LGUI, LT(_LOWER, KC_SPC), LT(_RAISE, KC_SPC), KC_RGUI, KC_RALT, KC_RCTL | ||
| 51 | ), | ||
| 52 | |||
| 53 | /* Lower Layer | ||
| 54 | * ,-----------------------------------------------------------. | ||
| 55 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del| | ||
| 56 | * |-----------------------------------------------------------| | ||
| 57 | * | | | | | | | _ | + | { | } | Pipe | | ||
| 58 | * |-----------------------------------------------------------| | ||
| 59 | * | | | | | | | | ; | ' | Up | | | ||
| 60 | * |-----------------------------------------------------------| | ||
| 61 | * | | | | | |Left|Down|Right | | ||
| 62 | * `-----------------------------------------------------------' | ||
| 63 | */ | ||
| 64 | [_LOWER] = LAYOUT( | ||
| 65 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 66 | _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, KC_SCLN, KC_QUOT, KC_UP, _______, | ||
| 68 | _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 69 | ), | ||
| 70 | |||
| 71 | /* Raise Layer | ||
| 72 | * ,-----------------------------------------------------------. | ||
| 73 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del| | ||
| 74 | * |-----------------------------------------------------------| | ||
| 75 | * | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | Pipe | | ||
| 76 | * |-----------------------------------------------------------| | ||
| 77 | * | F7 | F8 | F9 | F10| F11| F12| \ | \ | | | | | ||
| 78 | * |-----------------------------------------------------------| | ||
| 79 | * | | | | | | | | | | ||
| 80 | * `-----------------------------------------------------------' | ||
| 81 | */ | ||
| 82 | [_RAISE] = LAYOUT( | ||
| 83 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 84 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 85 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, | ||
| 86 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 87 | ), | ||
| 88 | |||
| 89 | /* Adjust Layer | ||
| 90 | * ,-----------------------------------------------------------. | ||
| 91 | * |Mute| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10|F11 | | ||
| 92 | * |-----------------------------------------------------------| | ||
| 93 | * | |BTOG |BSTP|BINC| MAC|RGBTOG|HUI|WIN|SAI|VAI| F12 | | ||
| 94 | * |-----------------------------------------------------------| | ||
| 95 | * | Caps |Reset|BBRE|BDEC| |RMOD|HUD | |SAD|VAD | | | ||
| 96 | * |-----------------------------------------------------------| | ||
| 97 | * |SLEEP| | | | | | | | | ||
| 98 | * `-----------------------------------------------------------' | ||
| 99 | */ | ||
| 100 | [_ADJUST] = LAYOUT( | ||
| 101 | KC_MUTE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 102 | _______, BL_TOGG, BL_STEP, BL_INC, AG_NORM, RGB_TOG, RGB_HUI, AG_SWAP, RGB_SAI, RGB_VAI, KC_F12, | ||
| 103 | KC_CAPS, RESET, BL_BRTG, BL_DEC, _______, RGB_MOD, RGB_HUD, _______, RGB_SAD, RGB_VAD, _______, | ||
| 104 | KC_SLEP, _______, _______, _______, _______, _______, _______, _______ | ||
| 105 | ), | ||
| 106 | }; | ||
| 107 | |||
| 108 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 109 | if (index == 0) { /* Left encoder */ | ||
| 110 | switch (get_highest_layer(layer_state)) { | ||
| 111 | case _QWERTY: | ||
| 112 | if (clockwise) { | ||
| 113 | tap_code(KC_TAB); | ||
| 114 | } else { | ||
| 115 | tap_code16(S(KC_TAB)); | ||
| 116 | } | ||
| 117 | break; | ||
| 118 | case _RAISE: | ||
| 119 | if (clockwise) { | ||
| 120 | // tap_code(KC_VOLU); | ||
| 121 | if(keymap_config.swap_lalt_lgui==false){ | ||
| 122 | tap_code(KC_LANG2); | ||
| 123 | }else { | ||
| 124 | tap_code16(A(KC_GRV)); | ||
| 125 | } | ||
| 126 | } else { | ||
| 127 | if(keymap_config.swap_lalt_lgui==false){ | ||
| 128 | tap_code(KC_LANG1); | ||
| 129 | } else { | ||
| 130 | tap_code16(A(KC_GRV)); | ||
| 131 | } | ||
| 132 | } | ||
| 133 | break; | ||
| 134 | case _ADJUST: | ||
| 135 | if (clockwise) { | ||
| 136 | tap_code(KC_VOLU); | ||
| 137 | } else { | ||
| 138 | tap_code(KC_VOLD); | ||
| 139 | } | ||
| 140 | } | ||
| 141 | |||
| 142 | } else if (index == 1) { /* Right encoder */ | ||
| 143 | if (clockwise) { | ||
| 144 | tap_code(KC_PGDN); | ||
| 145 | } else { | ||
| 146 | tap_code(KC_PGUP); | ||
| 147 | } | ||
| 148 | } | ||
| 149 | } | ||
diff --git a/keyboards/aleth42/keymaps/default/readme.md b/keyboards/aleth42/keymaps/default/readme.md new file mode 100644 index 000000000..85da46e69 --- /dev/null +++ b/keyboards/aleth42/keymaps/default/readme.md | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | # The default keymap for aleth42 | ||
| 2 | |||
| 3 | Default Layer | ||
| 4 | |||
| 5 | ,-----------------------------------------------------------. | ||
| 6 | | Esc| Q | W | E | R | T | Y | U | I | O | P | BS | | ||
| 7 | |-----------------------------------------------------------| | ||
| 8 | | Tab | A | S | D | F | G | H | J | K | L | Ent | | ||
| 9 | |-----------------------------------------------------------| | ||
| 10 | | LSft | Z | X | C | V | B | N | M | , | . |fn(/)| | ||
| 11 | |-----------------------------------------------------------| | ||
| 12 | | Lctl | LAlt| LGui| spc fn0 | spc fn1 |RGui|RAlt|RCtl| | ||
| 13 | `-----------------------------------------------------------' | ||
| 14 | |||
| 15 | Lower Layer = fn0 | ||
| 16 | |||
| 17 | ,-----------------------------------------------------------. | ||
| 18 | | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del| | ||
| 19 | |-----------------------------------------------------------| | ||
| 20 | | | | | | | | _ | + | { | } | Pipe | | ||
| 21 | |-----------------------------------------------------------| | ||
| 22 | | | | | | | | | ; | ' | Up | | | ||
| 23 | |-----------------------------------------------------------| | ||
| 24 | | | | | | |Left|Down|Right | | ||
| 25 | `-----------------------------------------------------------' | ||
| 26 | |||
| 27 | Raise Layer = fn1 | ||
| 28 | |||
| 29 | ,-----------------------------------------------------------. | ||
| 30 | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del| | ||
| 31 | |-----------------------------------------------------------| | ||
| 32 | | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | Pipe | | ||
| 33 | |-----------------------------------------------------------| | ||
| 34 | | F7 | F8 | F9 | F10| F11| F12| \ | \ | | | | | ||
| 35 | |-----------------------------------------------------------| | ||
| 36 | | | | | | | | | | | ||
| 37 | `-----------------------------------------------------------' | ||
| 38 | |||
| 39 | Adjust Layer = fn | ||
| 40 | |||
| 41 | ,-----------------------------------------------------------. | ||
| 42 | |Mute| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10|F11 | | ||
| 43 | |-----------------------------------------------------------| | ||
| 44 | | |BTOG |BSTP|BINC| MAC|RGBTOG|HUI|WIN|SAI|VAI| F12 | | ||
| 45 | |-----------------------------------------------------------| | ||
| 46 | | Caps |Reset|BBRE|BDEC| |RMOD|HUD | |SAD|VAD | | | ||
| 47 | |-----------------------------------------------------------| | ||
| 48 | |SLEEP| | | | | | | | | ||
| 49 | `-----------------------------------------------------------' | ||
| 50 | |||
diff --git a/keyboards/aleth42/keymaps/via/config.h b/keyboards/aleth42/keymaps/via/config.h new file mode 100644 index 000000000..f664d664f --- /dev/null +++ b/keyboards/aleth42/keymaps/via/config.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* Copyright 2020 monksoffunk | ||
| 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 | // place overrides here | ||
| 20 | // #define TAPPING_TERM 200 | ||
| 21 | #define PERMISSIVE_HOLD | ||
| 22 | #define ENCODER_RESOLUTION 2 \ No newline at end of file | ||
diff --git a/keyboards/aleth42/keymaps/via/keymap.c b/keyboards/aleth42/keymaps/via/keymap.c new file mode 100644 index 000000000..e747b0d64 --- /dev/null +++ b/keyboards/aleth42/keymaps/via/keymap.c | |||
| @@ -0,0 +1,149 @@ | |||
| 1 | /* Copyright 2020 monksoffunk | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _QWERTY, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST, | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | enum custom_keycodes { | ||
| 28 | QWERTY = SAFE_RANGE, | ||
| 29 | LOWER, | ||
| 30 | RAISE, | ||
| 31 | ADJUST, | ||
| 32 | }; | ||
| 33 | |||
| 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 35 | /* Default Layer | ||
| 36 | * ,-----------------------------------------------------------. | ||
| 37 | * | Esc| Q | W | E | R | T | Y | U | I | O | P | BS | | ||
| 38 | * |-----------------------------------------------------------| | ||
| 39 | * | Tab | A | S | D | F | G | H | J | K | L | Ent | | ||
| 40 | * |-----------------------------------------------------------| | ||
| 41 | * | LSft | Z | X | C | V | B | N | M | , | . |fn(/)| | ||
| 42 | * |-----------------------------------------------------------| | ||
| 43 | * | Esc | LAlt| LGui| spc fn0 | spc fn1 |RGui|RAlt|RCtl| | ||
| 44 | * `-----------------------------------------------------------' | ||
| 45 | */ | ||
| 46 | [_QWERTY] = LAYOUT( | ||
| 47 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 48 | MT(MOD_LCTL, KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
| 49 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, LT(_ADJUST, KC_SLSH), | ||
| 50 | MT(MOD_LCTL, KC_ESC), KC_LALT , KC_LGUI, LT(_LOWER, KC_SPC), LT(_RAISE, KC_SPC), KC_RGUI, KC_RALT, KC_RCTL | ||
| 51 | ), | ||
| 52 | |||
| 53 | /* Lower Layer | ||
| 54 | * ,-----------------------------------------------------------. | ||
| 55 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del| | ||
| 56 | * |-----------------------------------------------------------| | ||
| 57 | * | | | | | | | _ | + | { | } | Pipe | | ||
| 58 | * |-----------------------------------------------------------| | ||
| 59 | * | | | | | | | | ; | ' | Up | | | ||
| 60 | * |-----------------------------------------------------------| | ||
| 61 | * | | | | | |Left|Down|Right | | ||
| 62 | * `-----------------------------------------------------------' | ||
| 63 | */ | ||
| 64 | [_LOWER] = LAYOUT( | ||
| 65 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 66 | _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, KC_SCLN, KC_QUOT, KC_UP, _______, | ||
| 68 | _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 69 | ), | ||
| 70 | |||
| 71 | /* Raise Layer | ||
| 72 | * ,-----------------------------------------------------------. | ||
| 73 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del| | ||
| 74 | * |-----------------------------------------------------------| | ||
| 75 | * | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | Pipe | | ||
| 76 | * |-----------------------------------------------------------| | ||
| 77 | * | F7 | F8 | F9 | F10| F11| F12| \ | \ | | | | | ||
| 78 | * |-----------------------------------------------------------| | ||
| 79 | * | | | | | | | | | | ||
| 80 | * `-----------------------------------------------------------' | ||
| 81 | */ | ||
| 82 | [_RAISE] = LAYOUT( | ||
| 83 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 84 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 85 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, | ||
| 86 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 87 | ), | ||
| 88 | |||
| 89 | /* Adjust Layer | ||
| 90 | * ,-----------------------------------------------------------. | ||
| 91 | * |Mute| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10|F11 | | ||
| 92 | * |-----------------------------------------------------------| | ||
| 93 | * | |BTOG |BSTP|BINC| MAC|RGBTOG|HUI|WIN|SAI|VAI| F12 | | ||
| 94 | * |-----------------------------------------------------------| | ||
| 95 | * | Caps |Reset|BBRE|BDEC| |RMOD|HUD | |SAD|VAD | | | ||
| 96 | * |-----------------------------------------------------------| | ||
| 97 | * |SLEEP| | | | | | | | | ||
| 98 | * `-----------------------------------------------------------' | ||
| 99 | */ | ||
| 100 | [_ADJUST] = LAYOUT( | ||
| 101 | KC_MUTE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 102 | _______, BL_TOGG, BL_STEP, BL_INC, AG_NORM, RGB_TOG, RGB_HUI, AG_SWAP, RGB_SAI, RGB_VAI, KC_F12, | ||
| 103 | KC_CAPS, RESET, BL_BRTG, BL_DEC, _______, RGB_MOD, RGB_HUD, _______, RGB_SAD, RGB_VAD, _______, | ||
| 104 | KC_SLEP, _______, _______, _______, _______, _______, _______, _______ | ||
| 105 | ), | ||
| 106 | }; | ||
| 107 | |||
| 108 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 109 | if (index == 0) { /* Left encoder */ | ||
| 110 | switch (get_highest_layer(layer_state)) { | ||
| 111 | case _QWERTY: | ||
| 112 | if (clockwise) { | ||
| 113 | tap_code(KC_TAB); | ||
| 114 | } else { | ||
| 115 | tap_code16(S(KC_TAB)); | ||
| 116 | } | ||
| 117 | break; | ||
| 118 | case _RAISE: | ||
| 119 | if (clockwise) { | ||
| 120 | // tap_code(KC_VOLU); | ||
| 121 | if(keymap_config.swap_lalt_lgui==false){ | ||
| 122 | tap_code(KC_LANG2); | ||
| 123 | }else { | ||
| 124 | tap_code16(A(KC_GRV)); | ||
| 125 | } | ||
| 126 | } else { | ||
| 127 | if(keymap_config.swap_lalt_lgui==false){ | ||
| 128 | tap_code(KC_LANG1); | ||
| 129 | } else { | ||
| 130 | tap_code16(A(KC_GRV)); | ||
| 131 | } | ||
| 132 | } | ||
| 133 | break; | ||
| 134 | case _ADJUST: | ||
| 135 | if (clockwise) { | ||
| 136 | tap_code(KC_VOLU); | ||
| 137 | } else { | ||
| 138 | tap_code(KC_VOLD); | ||
| 139 | } | ||
| 140 | } | ||
| 141 | |||
| 142 | } else if (index == 1) { /* Right encoder */ | ||
| 143 | if (clockwise) { | ||
| 144 | tap_code(KC_PGDN); | ||
| 145 | } else { | ||
| 146 | tap_code(KC_PGUP); | ||
| 147 | } | ||
| 148 | } | ||
| 149 | } \ No newline at end of file | ||
diff --git a/keyboards/aleth42/keymaps/via/readme.md b/keyboards/aleth42/keymaps/via/readme.md new file mode 100644 index 000000000..01f2cfee3 --- /dev/null +++ b/keyboards/aleth42/keymaps/via/readme.md | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | # The VIA keymap for aleth42 | ||
| 2 | |||
| 3 | Default Layer | ||
| 4 | |||
| 5 | ,-----------------------------------------------------------. | ||
| 6 | | Esc| Q | W | E | R | T | Y | U | I | O | P | BS | | ||
| 7 | |-----------------------------------------------------------| | ||
| 8 | | Tab*| A | S | D | F | G | H | J | K | L | Ent | | ||
| 9 | |-----------------------------------------------------------| | ||
| 10 | | LSft | Z | X | C | V | B | N | M | , | . |fn(/)| | ||
| 11 | |-----------------------------------------------------------| | ||
| 12 | | Esc* | LAlt| LGui| spc fn0 | spc fn1 |RGui|RAlt|RCtl| | ||
| 13 | `-----------------------------------------------------------' | ||
| 14 | |||
| 15 | Tab* would activate Left Control when held, and send Tab when tapped. | ||
| 16 | |||
| 17 | Esc* would activate Left Control when held, and send Escape when tapped. | ||
| 18 | |||
| 19 | Esc* is useful with a rotary encoder @ upper-left Esc location. | ||
| 20 | |||
| 21 | Lower Layer = fn0 | ||
| 22 | |||
| 23 | ,-----------------------------------------------------------. | ||
| 24 | | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del| | ||
| 25 | |-----------------------------------------------------------| | ||
| 26 | | | | | | | | _ | + | { | } | Pipe | | ||
| 27 | |-----------------------------------------------------------| | ||
| 28 | | | | | | | | | ; | ' | Up | | | ||
| 29 | |-----------------------------------------------------------| | ||
| 30 | | | | | | |Left|Down|Right | | ||
| 31 | `-----------------------------------------------------------' | ||
| 32 | |||
| 33 | Raise Layer = fn1 | ||
| 34 | |||
| 35 | ,-----------------------------------------------------------. | ||
| 36 | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del| | ||
| 37 | |-----------------------------------------------------------| | ||
| 38 | | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | Pipe | | ||
| 39 | |-----------------------------------------------------------| | ||
| 40 | | F7 | F8 | F9 | F10| F11| F12| \ | \ | | | | | ||
| 41 | |-----------------------------------------------------------| | ||
| 42 | | | | | | | | | | | ||
| 43 | `-----------------------------------------------------------' | ||
| 44 | |||
| 45 | Adjust Layer = fn | ||
| 46 | |||
| 47 | ,-----------------------------------------------------------. | ||
| 48 | |Mute| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10|F11 | | ||
| 49 | |-----------------------------------------------------------| | ||
| 50 | | |BTOG |BSTP|BINC| MAC|RGBTOG|HUI|WIN|SAI|VAI| F12 | | ||
| 51 | |-----------------------------------------------------------| | ||
| 52 | | Caps |Reset|BBRE|BDEC| |RMOD|HUD | |SAD|VAD | | | ||
| 53 | |-----------------------------------------------------------| | ||
| 54 | |SLEEP| | | | | | | | | ||
| 55 | `-----------------------------------------------------------' | ||
| 56 | |||
diff --git a/keyboards/aleth42/keymaps/via/rules.mk b/keyboards/aleth42/keymaps/via/rules.mk new file mode 100644 index 000000000..35a31dea8 --- /dev/null +++ b/keyboards/aleth42/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | CONSOLE_ENABLE = no | ||
diff --git a/keyboards/aleth42/readme.md b/keyboards/aleth42/readme.md new file mode 100644 index 000000000..3da1231d6 --- /dev/null +++ b/keyboards/aleth42/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # ALETH42 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | 40% keyboard with rotary encoder (optional) | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [monksoffunk](https://github.com/monksoffunk/) [@monksoffunkJP](https://twitter.com/monksoffunkJP) | ||
| 8 | * Hardware Supported: ALETH42 PCB | ||
| 9 | * Hardware Availability: [twitter](https://twitter.com/monksoffunkJP), [Booth](https://25keys.booth.pm/items/2420095) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make aleth42:default | ||
| 14 | |||
| 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/aleth42/rev0/config.h b/keyboards/aleth42/rev0/config.h new file mode 100644 index 000000000..da10e30a4 --- /dev/null +++ b/keyboards/aleth42/rev0/config.h | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 monksoffunk | ||
| 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 2 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 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x04D8 | ||
| 24 | #define PRODUCT_ID 0xEAC8 | ||
| 25 | #define DEVICE_VER 0x0000 | ||
| 26 | #define MANUFACTURER 25KEYS | ||
| 27 | #define PRODUCT ALETH42 | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 4 | ||
| 31 | #define MATRIX_COLS 11 | ||
| 32 | |||
| 33 | /* key matrix pins */ | ||
| 34 | #define MATRIX_ROW_PINS { B0, B1, B2, B3 } | ||
| 35 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D4, D5, D6, C2, C4, C5, C6 } | ||
| 36 | #define UNUSED_PINS | ||
| 37 | |||
| 38 | /* COL2ROW, ROW2COL*/ | ||
| 39 | #define DIODE_DIRECTION COL2ROW | ||
| 40 | |||
| 41 | #define ENCODERS_PAD_A { B6, B5 } // located @ upper left | ||
| 42 | #define ENCODERS_PAD_B { B7, B4 } // located @ bottom left | ||
| 43 | |||
| 44 | #define RGB_DI_PIN C7 | ||
| 45 | #ifdef RGB_DI_PIN | ||
| 46 | #define RGBLED_NUM 6 | ||
| 47 | #define RGBLIGHT_HUE_STEP 8 | ||
| 48 | #define RGBLIGHT_SAT_STEP 8 | ||
| 49 | #define RGBLIGHT_VAL_STEP 8 | ||
| 50 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 51 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 52 | /*== all animations enable ==*/ | ||
| 53 | #define RGBLIGHT_ANIMATIONS | ||
| 54 | // /*== or choose animations ==*/ | ||
| 55 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 56 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 57 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 58 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 59 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 60 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 61 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 62 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 63 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 64 | // /*== customize breathing effect ==*/ | ||
| 65 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 66 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 67 | // /*==== use exp() and sin() ====*/ | ||
| 68 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 69 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 70 | #endif | ||
| 71 | |||
| 72 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 73 | #define DEBOUNCE 5 | ||
| 74 | |||
| 75 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 76 | #define LOCKING_SUPPORT_ENABLE | ||
| 77 | /* Locking resynchronize hack */ | ||
| 78 | #define LOCKING_RESYNC_ENABLE | ||
| 79 | |||
| 80 | /* disable these deprecated features by default */ | ||
| 81 | #define NO_ACTION_MACRO | ||
| 82 | #define NO_ACTION_FUNCTION \ No newline at end of file | ||
diff --git a/keyboards/aleth42/rev0/readme.md b/keyboards/aleth42/rev0/readme.md new file mode 100644 index 000000000..2457a7a10 --- /dev/null +++ b/keyboards/aleth42/rev0/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # ALETH42 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | 40% keyboard with rotary encoder (optional) | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [monksoffunk](https://github.com/monksoffunk/) [@monksoffunkJP](https://twitter.com/monksoffunkJP) | ||
| 8 | * Hardware Supported: ALETH42 PCB | ||
| 9 | * Hardware Availability: [twitter](https://twitter.com/monksoffunkJP) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make aleth42:default | ||
| 14 | |||
| 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/aleth42/rev0/rev0.c b/keyboards/aleth42/rev0/rev0.c new file mode 100644 index 000000000..ce91e8380 --- /dev/null +++ b/keyboards/aleth42/rev0/rev0.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2020 monksoffunk | ||
| 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 "rev0.h" \ No newline at end of file | ||
diff --git a/keyboards/aleth42/rev0/rev0.h b/keyboards/aleth42/rev0/rev0.h new file mode 100644 index 000000000..a5dd74037 --- /dev/null +++ b/keyboards/aleth42/rev0/rev0.h | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | /* Copyright 2020 monksoffunk | ||
| 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 "quantum.h" | ||
| 20 | |||
| 21 | // for readability | ||
| 22 | #define XXX KC_NO | ||
| 23 | |||
| 24 | /* This is a shortcut to help you visually see your layout. | ||
| 25 | * | ||
| 26 | * The first section contains all of the arguments representing the physical | ||
| 27 | * layout of the board and position of the keys. | ||
| 28 | * | ||
| 29 | * The second converts the arguments into a two-dimensional array which | ||
| 30 | * represents the switch matrix. | ||
| 31 | */ | ||
| 32 | /* ALETH42 layout | ||
| 33 | * ,-----------------------------------------------------------. | ||
| 34 | * | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 38 | | ||
| 35 | * |-----------------------------------------------------------| | ||
| 36 | * | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 1A | | ||
| 37 | * |-----------------------------------------------------------| | ||
| 38 | * | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 2A | | ||
| 39 | * |-----------------------------------------------------------| | ||
| 40 | * | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | | ||
| 41 | * `-----------------------------------------------------------' | ||
| 42 | */ | ||
| 43 | #define LAYOUT( \ | ||
| 44 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k38,\ | ||
| 45 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A,\ | ||
| 46 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A,\ | ||
| 47 | k30, k31, k32, k33, k34, k35, k36, k37\ | ||
| 48 | ) \ | ||
| 49 | { \ | ||
| 50 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A },\ | ||
| 51 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A },\ | ||
| 52 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A },\ | ||
| 53 | { k30, k31, k32, k33, k34, k35, k36, k37, XXX, XXX, k38 }\ | ||
| 54 | } | ||
diff --git a/keyboards/aleth42/rev0/rules.mk b/keyboards/aleth42/rev0/rules.mk new file mode 100644 index 000000000..a54fa022f --- /dev/null +++ b/keyboards/aleth42/rev0/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u2 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = yes # 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 = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | ENCODER_ENABLE = yes | ||
| 22 | TAP_DANCE_ENABLE = no | ||
diff --git a/keyboards/aleth42/rev1/config.h b/keyboards/aleth42/rev1/config.h new file mode 100644 index 000000000..38c74c6bf --- /dev/null +++ b/keyboards/aleth42/rev1/config.h | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 monksoffunk | ||
| 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 2 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 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x04D8 | ||
| 24 | #define PRODUCT_ID 0xEAC8 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER 25KEYS | ||
| 27 | #define PRODUCT ALETH42 | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 4 | ||
| 31 | #define MATRIX_COLS 11 | ||
| 32 | |||
| 33 | /* key matrix pins */ | ||
| 34 | #define MATRIX_ROW_PINS { B4, B0, B2, B1 } | ||
| 35 | #define MATRIX_COL_PINS { D5, D3, D2, D1, D0, D6, D4, F7, F0, F1, F4 } | ||
| 36 | #define UNUSED_PINS | ||
| 37 | |||
| 38 | /* COL2ROW, ROW2COL*/ | ||
| 39 | #define DIODE_DIRECTION COL2ROW | ||
| 40 | |||
| 41 | #define ENCODERS_PAD_A { B5, F5 } | ||
| 42 | #define ENCODERS_PAD_B { B6, F6 } | ||
| 43 | |||
| 44 | #define BACKLIGHT_PIN C6 | ||
| 45 | #define BACKLIGHT_BREATHING | ||
| 46 | #define BACKLIGHT_LEVELS 8 | ||
| 47 | |||
| 48 | #define RGB_DI_PIN B3 | ||
| 49 | #ifdef RGB_DI_PIN | ||
| 50 | #define RGBLED_NUM 8 | ||
| 51 | #define RGBLIGHT_HUE_STEP 8 | ||
| 52 | #define RGBLIGHT_SAT_STEP 8 | ||
| 53 | #define RGBLIGHT_VAL_STEP 8 | ||
| 54 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 55 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 56 | /*== all animations enable ==*/ | ||
| 57 | #define RGBLIGHT_ANIMATIONS | ||
| 58 | // /*== or choose animations ==*/ | ||
| 59 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 60 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 61 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 62 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 63 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 64 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 65 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 66 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 67 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 68 | // /*== customize breathing effect ==*/ | ||
| 69 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 70 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 71 | // /*==== use exp() and sin() ====*/ | ||
| 72 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 73 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 74 | #endif | ||
| 75 | |||
| 76 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 77 | #define DEBOUNCE 5 | ||
| 78 | |||
| 79 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 80 | #define LOCKING_SUPPORT_ENABLE | ||
| 81 | /* Locking resynchronize hack */ | ||
| 82 | #define LOCKING_RESYNC_ENABLE \ No newline at end of file | ||
diff --git a/keyboards/aleth42/rev1/readme.md b/keyboards/aleth42/rev1/readme.md new file mode 100644 index 000000000..3da1231d6 --- /dev/null +++ b/keyboards/aleth42/rev1/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # ALETH42 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | 40% keyboard with rotary encoder (optional) | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [monksoffunk](https://github.com/monksoffunk/) [@monksoffunkJP](https://twitter.com/monksoffunkJP) | ||
| 8 | * Hardware Supported: ALETH42 PCB | ||
| 9 | * Hardware Availability: [twitter](https://twitter.com/monksoffunkJP), [Booth](https://25keys.booth.pm/items/2420095) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make aleth42:default | ||
| 14 | |||
| 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/aleth42/rev1/rev1.c b/keyboards/aleth42/rev1/rev1.c new file mode 100644 index 000000000..360cf8e7f --- /dev/null +++ b/keyboards/aleth42/rev1/rev1.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2020 monksoffunk | ||
| 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 "rev1.h" \ No newline at end of file | ||
diff --git a/keyboards/aleth42/rev1/rev1.h b/keyboards/aleth42/rev1/rev1.h new file mode 100644 index 000000000..a5dd74037 --- /dev/null +++ b/keyboards/aleth42/rev1/rev1.h | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | /* Copyright 2020 monksoffunk | ||
| 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 "quantum.h" | ||
| 20 | |||
| 21 | // for readability | ||
| 22 | #define XXX KC_NO | ||
| 23 | |||
| 24 | /* This is a shortcut to help you visually see your layout. | ||
| 25 | * | ||
| 26 | * The first section contains all of the arguments representing the physical | ||
| 27 | * layout of the board and position of the keys. | ||
| 28 | * | ||
| 29 | * The second converts the arguments into a two-dimensional array which | ||
| 30 | * represents the switch matrix. | ||
| 31 | */ | ||
| 32 | /* ALETH42 layout | ||
| 33 | * ,-----------------------------------------------------------. | ||
| 34 | * | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 38 | | ||
| 35 | * |-----------------------------------------------------------| | ||
| 36 | * | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 1A | | ||
| 37 | * |-----------------------------------------------------------| | ||
| 38 | * | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 2A | | ||
| 39 | * |-----------------------------------------------------------| | ||
| 40 | * | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | | ||
| 41 | * `-----------------------------------------------------------' | ||
| 42 | */ | ||
| 43 | #define LAYOUT( \ | ||
| 44 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k38,\ | ||
| 45 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A,\ | ||
| 46 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A,\ | ||
| 47 | k30, k31, k32, k33, k34, k35, k36, k37\ | ||
| 48 | ) \ | ||
| 49 | { \ | ||
| 50 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A },\ | ||
| 51 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A },\ | ||
| 52 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A },\ | ||
| 53 | { k30, k31, k32, k33, k34, k35, k36, k37, XXX, XXX, k38 }\ | ||
| 54 | } | ||
diff --git a/keyboards/aleth42/rev1/rules.mk b/keyboards/aleth42/rev1/rules.mk new file mode 100644 index 000000000..9441d4051 --- /dev/null +++ b/keyboards/aleth42/rev1/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 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 = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = yes # 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 = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | ENCODER_ENABLE = yes | ||
| 22 | TAP_DANCE_ENABLE = no | ||
diff --git a/keyboards/aleth42/rules.mk b/keyboards/aleth42/rules.mk new file mode 100644 index 000000000..8d130979b --- /dev/null +++ b/keyboards/aleth42/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| DEFAULT_FOLDER = aleth42/rev1 | |||
