diff options
| author | Eric Lau <ericrlau@gmail.com> | 2020-05-19 03:19:18 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-19 02:19:18 -0700 |
| commit | 2afb29e095eddfab91dcf1fc06be5fb151d2a5f5 (patch) | |
| tree | e41611311b4e53680bfff3ecaf1365557bac0fff /keyboards/ericrlau | |
| parent | fcf150bd820195a169a5de2699cfa1f2d4d3d5a3 (diff) | |
[Keyboard] Add NumDiscipline Keyboard - Modified Version of Discipline With Numpad (#9112)
* NumDiscipline firmware compiled
* renamed folder, deleted config.h from default
* deleted commented out code
* fix readme make example for lowercase foldername
* Update keyboards/ericrlau/numdiscipline/rev1/rules.mk
* Update product name
* Apply suggestions from code review - layout naming and key object ordering
Diffstat (limited to 'keyboards/ericrlau')
| -rw-r--r-- | keyboards/ericrlau/numdiscipline/info.json | 21 | ||||
| -rw-r--r-- | keyboards/ericrlau/numdiscipline/keymaps/default/keymap.c | 44 | ||||
| -rw-r--r-- | keyboards/ericrlau/numdiscipline/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/ericrlau/numdiscipline/readme.md | 23 | ||||
| -rw-r--r-- | keyboards/ericrlau/numdiscipline/rev1/config.h | 248 | ||||
| -rw-r--r-- | keyboards/ericrlau/numdiscipline/rev1/rev1.c | 17 | ||||
| -rw-r--r-- | keyboards/ericrlau/numdiscipline/rev1/rev1.h | 77 | ||||
| -rw-r--r-- | keyboards/ericrlau/numdiscipline/rev1/rules.mk | 36 |
8 files changed, 467 insertions, 0 deletions
diff --git a/keyboards/ericrlau/numdiscipline/info.json b/keyboards/ericrlau/numdiscipline/info.json new file mode 100644 index 0000000000..fbd40f399d --- /dev/null +++ b/keyboards/ericrlau/numdiscipline/info.json | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "ELau NumDiscipline KB", | ||
| 3 | "url": "https://github.com/ericrlau/NumDiscipline", | ||
| 4 | "maintainer": "ericrlau", | ||
| 5 | "width": 19.5, | ||
| 6 | "height": 5.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"BackSpace", "x":13, "y":0, "w":2}, {"label":"Del", "x":15.5, "y":0}, {"label":"", "x":16.5, "y":0}, {"label":"", "x":17.5, "y":0}, {"label":"", "x":18.5, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"7", "x":15.5, "y":1}, {"label":"8", "x":16.5, "y":1}, {"label":"9", "x":17.5, "y":1}, {"label":"+", "x":18.5, "y":1, "h":2}, {"label":"CapsLock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"4", "x":15.5, "y":2}, {"label":"5", "x":16.5, "y":2}, {"label":"6", "x":17.5, "y":2}, {"label":"Left Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Right Shift", "x":12.25, "y":3, "w":1.75}, {"label":"<i class='kb kb-Arrows-Up'></i>", "x":14.25, "y":3.25}, {"label":"1", "x":15.5, "y":3}, {"label":"2", "x":16.5, "y":3}, {"label":"3", "x":17.5, "y":3}, {"label":"Enter", "x":18.5, "y":3, "h":2}, {"label":"Left Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Left Alt", "x":2.5, "y":4, "w":1.25}, {"label":"Space", "x":3.75, "y":4, "w":6.25}, {"label":"Right Alt", "x":10, "y":4}, {"label":"Right Ctrl", "x":11, "y":4}, {"label":"Func", "x":12, "y":4}, {"label":"<i class='kb kb-Arrows-Left'></i>", "x":13.25, "y":4.25}, {"label":"<i class='kb kb-Arrows-Down'></i>", "x":14.25, "y":4.25}, {"label":"<i class='kb kb-Arrows-Right'></i>", "x":15.25, "y":4.25}, {"label":"0", "x":16.5, "y":4}, {"label":".", "x":17.5, "y":4}] | ||
| 10 | }, | ||
| 11 | "LAYOUT_std_2_right_mods": { | ||
| 12 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"BackSpace", "x":13, "y":0, "w":2}, {"label":"Del", "x":15.5, "y":0}, {"label":"", "x":16.5, "y":0}, {"label":"", "x":17.5, "y":0}, {"label":"", "x":18.5, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"7", "x":15.5, "y":1}, {"label":"8", "x":16.5, "y":1}, {"label":"9", "x":17.5, "y":1}, {"label":"+", "x":18.5, "y":1, "h":2}, {"label":"CapsLock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"4", "x":15.5, "y":2}, {"label":"5", "x":16.5, "y":2}, {"label":"6", "x":17.5, "y":2}, {"label":"Left Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Right Shift", "x":12.25, "y":3, "w":1.75}, {"label":"<i class='kb kb-Arrows-Up'></i>", "x":14.25, "y":3.25}, {"label":"1", "x":15.5, "y":3}, {"label":"2", "x":16.5, "y":3}, {"label":"3", "x":17.5, "y":3}, {"label":"Enter", "x":18.5, "y":3, "h":2}, {"label":"Left Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Left Alt", "x":2.5, "y":4, "w":1.25}, {"label":"Space", "x":3.75, "y":4, "w":6.25}, {"label":"Right Ctrl", "x":10, "y":4, "w":1.5}, {"label":"Func", "x":11.5, "y":4, "w":1.5}, {"label":"<i class='kb kb-Arrows-Left'></i>", "x":13.25, "y":4.25}, {"label":"<i class='kb kb-Arrows-Down'></i>", "x":14.25, "y":4.25}, {"label":"<i class='kb kb-Arrows-Right'></i>", "x":15.25, "y":4.25}, {"label":"0", "x":16.5, "y":4}, {"label":".", "x":17.5, "y":4}] | ||
| 13 | }, | ||
| 14 | "LAYOUT_wkl_2_right_mods": { | ||
| 15 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"BackSpace", "x":13, "y":0, "w":2}, {"label":"Del", "x":15.5, "y":0}, {"label":"", "x":16.5, "y":0}, {"label":"", "x":17.5, "y":0}, {"label":"", "x":18.5, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"7", "x":15.5, "y":1}, {"label":"8", "x":16.5, "y":1}, {"label":"9", "x":17.5, "y":1}, {"label":"+", "x":18.5, "y":1, "h":2}, {"label":"CapsLock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"4", "x":15.5, "y":2}, {"label":"5", "x":16.5, "y":2}, {"label":"6", "x":17.5, "y":2}, {"label":"Left Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Right Shift", "x":12.25, "y":3, "w":1.75}, {"label":"<i class='kb kb-Arrows-Up'></i>", "x":14.25, "y":3.25}, {"label":"1", "x":15.5, "y":3}, {"label":"2", "x":16.5, "y":3}, {"label":"3", "x":17.5, "y":3}, {"label":"Enter", "x":18.5, "y":3, "h":2}, {"label":"Left Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Left Alt", "x":2.5, "y":4, "w":1.25}, {"label":"Space", "x":3.75, "y":4, "w":6.25}, {"label":"Right Ctrl", "x":10, "y":4, "w":1.5}, {"label":"Func", "x":11.5, "y":4, "w":1.5}, {"label":"<i class='kb kb-Arrows-Left'></i>", "x":13.25, "y":4.25}, {"label":"<i class='kb kb-Arrows-Down'></i>", "x":14.25, "y":4.25}, {"label":"<i class='kb kb-Arrows-Right'></i>", "x":15.25, "y":4.25}, {"label":"0", "x":16.5, "y":4}, {"label":".", "x":17.5, "y":4}] | ||
| 16 | }, | ||
| 17 | "LAYOUT_wkl_3_right_mods": { | ||
| 18 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"BackSpace", "x":13, "y":0, "w":2}, {"label":"Del", "x":15.5, "y":0}, {"label":"", "x":16.5, "y":0}, {"label":"", "x":17.5, "y":0}, {"label":"", "x":18.5, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"7", "x":15.5, "y":1}, {"label":"8", "x":16.5, "y":1}, {"label":"9", "x":17.5, "y":1}, {"label":"+", "x":18.5, "y":1, "h":2}, {"label":"CapsLock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"4", "x":15.5, "y":2}, {"label":"5", "x":16.5, "y":2}, {"label":"6", "x":17.5, "y":2}, {"label":"Left Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Right Shift", "x":12.25, "y":3, "w":1.75}, {"label":"<i class='kb kb-Arrows-Up'></i>", "x":14.25, "y":3.25}, {"label":"1", "x":15.5, "y":3}, {"label":"2", "x":16.5, "y":3}, {"label":"3", "x":17.5, "y":3}, {"label":"Enter", "x":18.5, "y":3, "h":2}, {"label":"Left Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Left Alt", "x":2.5, "y":4, "w":1.25}, {"label":"Space", "x":3.75, "y":4, "w":6.25}, {"label":"Right Alt", "x":10, "y":4}, {"label":"Right Ctrl", "x":11, "y":4}, {"label":"Func", "x":12, "y":4}, {"label":"<i class='kb kb-Arrows-Left'></i>", "x":13.25, "y":4.25}, {"label":"<i class='kb kb-Arrows-Down'></i>", "x":14.25, "y":4.25}, {"label":"<i class='kb kb-Arrows-Right'></i>", "x":15.25, "y":4.25}, {"label":"0", "x":16.5, "y":4}, {"label":".", "x":17.5, "y":4}] | ||
| 19 | } | ||
| 20 | } | ||
| 21 | } | ||
diff --git a/keyboards/ericrlau/numdiscipline/keymaps/default/keymap.c b/keyboards/ericrlau/numdiscipline/keymaps/default/keymap.c new file mode 100644 index 0000000000..c24713eb6e --- /dev/null +++ b/keyboards/ericrlau/numdiscipline/keymaps/default/keymap.c | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* Copyright 2020 Eric Lau | ||
| 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 | _BASE, | ||
| 21 | _FN | ||
| 22 | }; | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | [_BASE] = LAYOUT_all( | ||
| 26 | KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 27 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
| 28 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, | ||
| 29 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT, | ||
| 30 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT, KC_P0, KC_PDOT), | ||
| 31 | |||
| 32 | [_FN] = LAYOUT_all( | ||
| 33 | /* esc 1 2 3 4 5 6 7 8 9 0 - = bkspc del / * - */ | ||
| 34 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_TRNS, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 35 | /* tab Q W E R T Y U I O P [ ] \ 7 8 9 + */ | ||
| 36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PPLS, | ||
| 37 | /* caps A S D F G H J K L ; ' enter 4 5 6 */ | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_PGUP, KC_TRNS, KC_TRNS, | ||
| 39 | /* shift Z X C V B N M , . / shift up 1 2 3 enter*/ | ||
| 40 | KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, KC_PGDN, KC_P2, KC_P3, KC_PENT, | ||
| 41 | /* ctrl win alt space alt fn ctrl left down right 0 . */ | ||
| 42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_VOLD, KC_TRNS, KC_TRNS, KC_TRNS ) | ||
| 43 | |||
| 44 | }; | ||
diff --git a/keyboards/ericrlau/numdiscipline/keymaps/default/readme.md b/keyboards/ericrlau/numdiscipline/keymaps/default/readme.md new file mode 100644 index 0000000000..1e3a04f735 --- /dev/null +++ b/keyboards/ericrlau/numdiscipline/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for NumDiscipline | |||
diff --git a/keyboards/ericrlau/numdiscipline/readme.md b/keyboards/ericrlau/numdiscipline/readme.md new file mode 100644 index 0000000000..bd040df2a5 --- /dev/null +++ b/keyboards/ericrlau/numdiscipline/readme.md | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # NumDiscipline | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A modified version of the through hole 65% Discipline keyboard by cftkb. | ||
| 6 | |||
| 7 | * Modifications from original Discipline | ||
| 8 | * Add numpad on right. | ||
| 9 | * Move arrow keys 0.25U down and right, similar to 1800 layout. | ||
| 10 | * Adjust component layout on top of board, moving ATMega and buttons to the right, adding in more diodes in center. | ||
| 11 | * Removed ~, Delete, Page Up, Page Down keys. These will be on alternate layer. | ||
| 12 | |||
| 13 | Other Information: | ||
| 14 | |||
| 15 | * Keyboard Maintainer: [ELau](https://github.com/ericrlau) | ||
| 16 | * Hardware Supported: The PCBs, controllers supported | ||
| 17 | * Hardware Availability: https://github.com/ericrlau/NumDiscipline | ||
| 18 | |||
| 19 | Make example for this keyboard (after setting up your build environment): | ||
| 20 | |||
| 21 | make ericrlau/numdiscipline/rev1:default | ||
| 22 | |||
| 23 | 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/ericrlau/numdiscipline/rev1/config.h b/keyboards/ericrlau/numdiscipline/rev1/config.h new file mode 100644 index 0000000000..008d5f0c32 --- /dev/null +++ b/keyboards/ericrlau/numdiscipline/rev1/config.h | |||
| @@ -0,0 +1,248 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Eric Lau | ||
| 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 0x454C // EL | ||
| 24 | #define PRODUCT_ID 0x0001 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER ELau | ||
| 27 | #define PRODUCT NumDiscipline | ||
| 28 | #define DESCRIPTION A custom keyboard | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 5 | ||
| 32 | #define MATRIX_COLS 18 | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Keyboard Matrix Assignments | ||
| 36 | * | ||
| 37 | * Change this to how you wired your keyboard | ||
| 38 | * COLS: AVR pins used for columns, left to right | ||
| 39 | * ROWS: AVR pins used for rows, top to bottom | ||
| 40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | |||
| 45 | #define MATRIX_ROW_PINS { B2, A1, B1, A0, B0 } | ||
| 46 | #define MATRIX_COL_PINS { A2, B3, A3, B4, A4, D5, D6, C6, C5, C4, C3, C2, C1, C0, D7, A5, A6, A7 } | ||
| 47 | #define UNUSED_PINS | ||
| 48 | |||
| 49 | /* COL2ROW, ROW2COL*/ | ||
| 50 | #define DIODE_DIRECTION COL2ROW | ||
| 51 | |||
| 52 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
| 53 | |||
| 54 | /* | ||
| 55 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 56 | */ | ||
| 57 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 58 | |||
| 59 | // #define BACKLIGHT_PIN B7 | ||
| 60 | // #define BACKLIGHT_BREATHING | ||
| 61 | // #define BACKLIGHT_LEVELS 3 | ||
| 62 | |||
| 63 | // #define RGB_DI_PIN E2 | ||
| 64 | // #ifdef RGB_DI_PIN | ||
| 65 | // #define RGBLED_NUM 16 | ||
| 66 | // #define RGBLIGHT_HUE_STEP 8 | ||
| 67 | // #define RGBLIGHT_SAT_STEP 8 | ||
| 68 | // #define RGBLIGHT_VAL_STEP 8 | ||
| 69 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 70 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 71 | // /*== all animations enable ==*/ | ||
| 72 | // #define RGBLIGHT_ANIMATIONS | ||
| 73 | // /*== or choose animations ==*/ | ||
| 74 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 75 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 76 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 77 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 78 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 79 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 80 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 81 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 82 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 83 | // #endif | ||
| 84 | |||
| 85 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 86 | #define DEBOUNCE 5 | ||
| 87 | |||
| 88 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 89 | //#define MATRIX_HAS_GHOST | ||
| 90 | |||
| 91 | /* number of backlight levels */ | ||
| 92 | |||
| 93 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 94 | #define LOCKING_SUPPORT_ENABLE | ||
| 95 | /* Locking resynchronize hack */ | ||
| 96 | #define LOCKING_RESYNC_ENABLE | ||
| 97 | |||
| 98 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 99 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 100 | */ | ||
| 101 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 102 | |||
| 103 | /* | ||
| 104 | * Force NKRO | ||
| 105 | * | ||
| 106 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 107 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 108 | * makefile for this to work.) | ||
| 109 | * | ||
| 110 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 111 | * until the next keyboard reset. | ||
| 112 | * | ||
| 113 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 114 | * fully operational during normal computer usage. | ||
| 115 | * | ||
| 116 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 117 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 118 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 119 | * power-up. | ||
| 120 | * | ||
| 121 | */ | ||
| 122 | //#define FORCE_NKRO | ||
| 123 | |||
| 124 | /* | ||
| 125 | * Magic Key Options | ||
| 126 | * | ||
| 127 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 128 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 129 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 130 | * | ||
| 131 | * The options below allow the magic key functionality to be changed. This is | ||
| 132 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 133 | * | ||
| 134 | */ | ||
| 135 | |||
| 136 | /* key combination for magic key command */ | ||
| 137 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 138 | // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | ||
| 139 | |||
| 140 | /* control how magic key switches layers */ | ||
| 141 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 142 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 143 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 144 | |||
| 145 | /* override magic key keymap */ | ||
| 146 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 147 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 148 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 149 | //#define MAGIC_KEY_HELP H | ||
| 150 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 151 | //#define MAGIC_KEY_DEBUG D | ||
| 152 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 153 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 154 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 155 | //#define MAGIC_KEY_VERSION V | ||
| 156 | //#define MAGIC_KEY_STATUS S | ||
| 157 | //#define MAGIC_KEY_CONSOLE C | ||
| 158 | //#define MAGIC_KEY_LAYER0 0 | ||
| 159 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 160 | //#define MAGIC_KEY_LAYER1 1 | ||
| 161 | //#define MAGIC_KEY_LAYER2 2 | ||
| 162 | //#define MAGIC_KEY_LAYER3 3 | ||
| 163 | //#define MAGIC_KEY_LAYER4 4 | ||
| 164 | //#define MAGIC_KEY_LAYER5 5 | ||
| 165 | //#define MAGIC_KEY_LAYER6 6 | ||
| 166 | //#define MAGIC_KEY_LAYER7 7 | ||
| 167 | //#define MAGIC_KEY_LAYER8 8 | ||
| 168 | //#define MAGIC_KEY_LAYER9 9 | ||
| 169 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 170 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 171 | //#define MAGIC_KEY_LOCK CAPS | ||
| 172 | //#define MAGIC_KEY_EEPROM E | ||
| 173 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 174 | //#define MAGIC_KEY_NKRO N | ||
| 175 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 176 | |||
| 177 | /* | ||
| 178 | * Feature disable options | ||
| 179 | * These options are also useful to firmware size reduction. | ||
| 180 | */ | ||
| 181 | |||
| 182 | /* disable debug print */ | ||
| 183 | //#define NO_DEBUG | ||
| 184 | |||
| 185 | /* disable print */ | ||
| 186 | //#define NO_PRINT | ||
| 187 | |||
| 188 | /* disable action features */ | ||
| 189 | //#define NO_ACTION_LAYER | ||
| 190 | //#define NO_ACTION_TAPPING | ||
| 191 | //#define NO_ACTION_ONESHOT | ||
| 192 | //#define NO_ACTION_MACRO | ||
| 193 | //#define NO_ACTION_FUNCTION | ||
| 194 | |||
| 195 | /* | ||
| 196 | * MIDI options | ||
| 197 | */ | ||
| 198 | |||
| 199 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 200 | //#define MIDI_ENABLE_STRICT 1 | ||
| 201 | |||
| 202 | /* enable basic MIDI features: | ||
| 203 | - MIDI notes can be sent when in Music mode is on | ||
| 204 | */ | ||
| 205 | //#define MIDI_BASIC | ||
| 206 | |||
| 207 | /* enable advanced MIDI features: | ||
| 208 | - MIDI notes can be added to the keymap | ||
| 209 | - Octave shift and transpose | ||
| 210 | - Virtual sustain, portamento, and modulation wheel | ||
| 211 | - etc. | ||
| 212 | */ | ||
| 213 | //#define MIDI_ADVANCED | ||
| 214 | |||
| 215 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 216 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 217 | |||
| 218 | /* | ||
| 219 | * HD44780 LCD Display Configuration | ||
| 220 | */ | ||
| 221 | /* | ||
| 222 | #define LCD_LINES 2 //< number of visible lines of the display | ||
| 223 | #define LCD_DISP_LENGTH 16 //< visibles characters per line of the display | ||
| 224 | |||
| 225 | #define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode | ||
| 226 | |||
| 227 | #if LCD_IO_MODE | ||
| 228 | #define LCD_PORT PORTB //< port for the LCD lines | ||
| 229 | #define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0 | ||
| 230 | #define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1 | ||
| 231 | #define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2 | ||
| 232 | #define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3 | ||
| 233 | #define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0 | ||
| 234 | #define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1 | ||
| 235 | #define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2 | ||
| 236 | #define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3 | ||
| 237 | #define LCD_RS_PORT LCD_PORT //< port for RS line | ||
| 238 | #define LCD_RS_PIN 3 //< pin for RS line | ||
| 239 | #define LCD_RW_PORT LCD_PORT //< port for RW line | ||
| 240 | #define LCD_RW_PIN 2 //< pin for RW line | ||
| 241 | #define LCD_E_PORT LCD_PORT //< port for Enable line | ||
| 242 | #define LCD_E_PIN 1 //< pin for Enable line | ||
| 243 | #endif | ||
| 244 | */ | ||
| 245 | |||
| 246 | /* Bootmagic Lite key configuration */ | ||
| 247 | #define BOOTMAGIC_LITE_ROW 0 | ||
| 248 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/ericrlau/numdiscipline/rev1/rev1.c b/keyboards/ericrlau/numdiscipline/rev1/rev1.c new file mode 100644 index 0000000000..9f3a0ba4a4 --- /dev/null +++ b/keyboards/ericrlau/numdiscipline/rev1/rev1.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2020 Eric Lau | ||
| 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" | ||
diff --git a/keyboards/ericrlau/numdiscipline/rev1/rev1.h b/keyboards/ericrlau/numdiscipline/rev1/rev1.h new file mode 100644 index 0000000000..e7bea65578 --- /dev/null +++ b/keyboards/ericrlau/numdiscipline/rev1/rev1.h | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | /* Copyright 2020 Eric Lau | ||
| 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 | #define _x_ KC_NO | ||
| 20 | |||
| 21 | #include "quantum.h" | ||
| 22 | |||
| 23 | #define LAYOUT_all( \ | ||
| 24 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H, \ | ||
| 25 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, \ | ||
| 26 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, K2F, K2G, \ | ||
| 27 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, \ | ||
| 28 | K40, K41, K42, K46, K49, K4A, K4B, K4C, K4D, K4E, K4F, K4G \ | ||
| 29 | ){ \ | ||
| 30 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \ | ||
| 31 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \ | ||
| 32 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, _x_, K2D, K2E, K2F, K2G, _x_ }, \ | ||
| 33 | { K30, _x_, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H }, \ | ||
| 34 | { K40, K41, K42, _x_, _x_, _x_, K46, _x_, _x_, K49, K4A, K4B, K4C, K4D, K4E, K4F, K4G, _x_} \ | ||
| 35 | } | ||
| 36 | |||
| 37 | #define LAYOUT_std_2_right_mods( \ | ||
| 38 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H, \ | ||
| 39 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, \ | ||
| 40 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, K2F, K2G, \ | ||
| 41 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, \ | ||
| 42 | K40, K41, K42, K46, K49, K4A, K4C, K4D, K4E, K4F, K4G \ | ||
| 43 | ){ \ | ||
| 44 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \ | ||
| 45 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \ | ||
| 46 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, _x_, K2D, K2E, K2F, K2G, _x_ }, \ | ||
| 47 | { K30, _x_, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H }, \ | ||
| 48 | { K40, K41, K42, _x_, _x_, _x_, K46, _x_, _x_, K49, K4A, _x_, K4C, K4D, K4E, K4F, K4G, _x_} \ | ||
| 49 | } | ||
| 50 | |||
| 51 | #define LAYOUT_wkl_2_right_mods( \ | ||
| 52 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H, \ | ||
| 53 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, \ | ||
| 54 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, K2F, K2G, \ | ||
| 55 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, \ | ||
| 56 | K40, K42, K46, K49, K4A, K4C, K4D, K4E, K4F, K4G \ | ||
| 57 | ){ \ | ||
| 58 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \ | ||
| 59 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \ | ||
| 60 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, _x_, K2D, K2E, K2F, K2G, _x_ }, \ | ||
| 61 | { K30, _x_, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H }, \ | ||
| 62 | { K40, _x_, K42, _x_, _x_, _x_, K46, _x_, _x_, K49, K4A, _x_, K4C, K4D, K4E, K4F, K4G, _x_} \ | ||
| 63 | } | ||
| 64 | |||
| 65 | #define LAYOUT_wkl_3_right_mods( \ | ||
| 66 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H, \ | ||
| 67 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, \ | ||
| 68 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, K2F, K2G, \ | ||
| 69 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, \ | ||
| 70 | K40, K42, K46, K49, K4A, K4B, K4C, K4D, K4E, K4F, K4G \ | ||
| 71 | ){ \ | ||
| 72 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \ | ||
| 73 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \ | ||
| 74 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, _x_, K2D, K2E, K2F, K2G, _x_ }, \ | ||
| 75 | { K30, _x_, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H }, \ | ||
| 76 | { K40, _x_, K42, _x_, _x_, _x_, K46, _x_, _x_, K49, K4A, K4B, K4C, K4D, K4E, K4F, K4G, _x_} \ | ||
| 77 | } | ||
diff --git a/keyboards/ericrlau/numdiscipline/rev1/rules.mk b/keyboards/ericrlau/numdiscipline/rev1/rules.mk new file mode 100644 index 0000000000..5a54d41239 --- /dev/null +++ b/keyboards/ericrlau/numdiscipline/rev1/rules.mk | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32a | ||
| 3 | |||
| 4 | # Processor frequency | ||
| 5 | F_CPU = 16000000 | ||
| 6 | |||
| 7 | # Bootloader selection | ||
| 8 | # Teensy halfkay | ||
| 9 | # Pro Micro caterina | ||
| 10 | # Atmel DFU atmel-dfu | ||
| 11 | # LUFA DFU lufa-dfu | ||
| 12 | # QMK DFU qmk-dfu | ||
| 13 | # ATmega32A bootloadHID | ||
| 14 | # ATmega328P USBasp | ||
| 15 | BOOTLOADER = USBasp | ||
| 16 | |||
| 17 | # Build Options | ||
| 18 | # change yes to no to disable | ||
| 19 | # | ||
| 20 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 21 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 22 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 23 | CONSOLE_ENABLE = no # Console for debug | ||
| 24 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 25 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 26 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 27 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 28 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 29 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
| 30 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 31 | MIDI_ENABLE = no # MIDI support | ||
| 32 | UNICODE_ENABLE = no # Unicode | ||
| 33 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 34 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 35 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 36 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
