diff options
| author | Rossman360 <53881724+Rossman360@users.noreply.github.com> | 2020-06-19 18:27:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-20 08:27:27 +1000 |
| commit | b43bdc1c69bb5a57976a159bfc00c4ac1c7c7f8f (patch) | |
| tree | b85b1f470b1be150ce6b81c86d4d444aad842353 /keyboards/montsinger | |
| parent | 5a5ecd7dd9729280ef72c5133c4007ef15c3f300 (diff) | |
| download | qmk_firmware-b43bdc1c69bb5a57976a159bfc00c4ac1c7c7f8f.tar.gz qmk_firmware-b43bdc1c69bb5a57976a159bfc00c4ac1c7c7f8f.zip | |
rebound rev4, consolodated switch matrix from 5x12 to 7x8 (#9314)
Diffstat (limited to 'keyboards/montsinger')
| -rw-r--r-- | keyboards/montsinger/rebound/rebound.h | 2 | ||||
| -rw-r--r-- | keyboards/montsinger/rebound/rev4/config.h | 65 | ||||
| -rw-r--r-- | keyboards/montsinger/rebound/rev4/info.json | 128 | ||||
| -rw-r--r-- | keyboards/montsinger/rebound/rev4/keymaps/default/keymap.c | 102 | ||||
| -rw-r--r-- | keyboards/montsinger/rebound/rev4/keymaps/rossman360/keymap.c | 120 | ||||
| -rw-r--r-- | keyboards/montsinger/rebound/rev4/keymaps/rossman360/rules.mk | 4 | ||||
| -rw-r--r-- | keyboards/montsinger/rebound/rev4/rev4.h | 59 | ||||
| -rw-r--r-- | keyboards/montsinger/rebound/rev4/rules.mk | 33 |
8 files changed, 513 insertions, 0 deletions
diff --git a/keyboards/montsinger/rebound/rebound.h b/keyboards/montsinger/rebound/rebound.h index 848316a36..6bddfb2c3 100644 --- a/keyboards/montsinger/rebound/rebound.h +++ b/keyboards/montsinger/rebound/rebound.h | |||
| @@ -24,4 +24,6 @@ | |||
| 24 | #include "rev2.h" | 24 | #include "rev2.h" |
| 25 | #elif defined(KEYBOARD_montsinger_rebound_rev3) | 25 | #elif defined(KEYBOARD_montsinger_rebound_rev3) |
| 26 | #include "rev3.h" | 26 | #include "rev3.h" |
| 27 | #elif defined(KEYBOARD_montsinger_rebound_rev4) | ||
| 28 | #include "rev4.h" | ||
| 27 | #endif | 29 | #endif |
diff --git a/keyboards/montsinger/rebound/rev4/config.h b/keyboards/montsinger/rebound/rev4/config.h new file mode 100644 index 000000000..c4fc053ea --- /dev/null +++ b/keyboards/montsinger/rebound/rev4/config.h | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Ross Montsinger | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #pragma once | ||
| 16 | |||
| 17 | #include "config_common.h" | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | |||
| 21 | #define VENDOR_ID 0xFEED | ||
| 22 | #define PRODUCT_ID 0x552F | ||
| 23 | #define DEVICE_VER 0x0002 | ||
| 24 | #define MANUFACTURER Montsinger | ||
| 25 | #define PRODUCT Rebound | ||
| 26 | #define DESCRIPTION "A conjoined Let's Split" | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | |||
| 30 | #define MATRIX_ROWS 8 | ||
| 31 | #define MATRIX_COLS 7 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on | ||
| 40 | diode) | ||
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | |||
| 45 | #define MATRIX_ROW_PINS { D1, D0, D4, C6, F7, F6, F5, F4 } | ||
| 46 | #define MATRIX_COL_PINS { D7, E6, B4, B5, B2, B3, B1 } | ||
| 47 | #define UNUSED_PINS { B6 } | ||
| 48 | |||
| 49 | #define ENCODERS_PAD_A { D2 } | ||
| 50 | #define ENCODERS_PAD_B { D3 } | ||
| 51 | |||
| 52 | /* COL2ROW, ROW2COL*/ | ||
| 53 | #define DIODE_DIRECTION ROW2COL | ||
| 54 | |||
| 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 56 | #define DEBOUNCE 5 | ||
| 57 | |||
| 58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 59 | #define LOCKING_SUPPORT_ENABLE | ||
| 60 | /* Locking resynchronize hack */ | ||
| 61 | #define LOCKING_RESYNC_ENABLE | ||
| 62 | |||
| 63 | /* Bootmagic Lite key configuration */ | ||
| 64 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 65 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/montsinger/rebound/rev4/info.json b/keyboards/montsinger/rebound/rev4/info.json new file mode 100644 index 000000000..23893b6c6 --- /dev/null +++ b/keyboards/montsinger/rebound/rev4/info.json | |||
| @@ -0,0 +1,128 @@ | |||
| 1 | { | ||
| 2 | "keyboard":"montsinger/rebound/rev4", | ||
| 3 | "url": "https://montsinger.net", | ||
| 4 | "maintainer": "rossman360", | ||
| 5 | "width": 13, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 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 | |||
| 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":12, "y":0}, | ||
| 23 | |||
| 24 | {"x":0, "y":1}, | ||
| 25 | {"x":1, "y":1}, | ||
| 26 | {"x":2, "y":1}, | ||
| 27 | {"x":3, "y":1}, | ||
| 28 | {"x":4, "y":1}, | ||
| 29 | {"x":5, "y":1}, | ||
| 30 | {"x":6, "y":1}, | ||
| 31 | {"x":7, "y":1}, | ||
| 32 | {"x":8, "y":1}, | ||
| 33 | {"x":9, "y":1}, | ||
| 34 | {"x":10, "y":1}, | ||
| 35 | {"x":11, "y":1}, | ||
| 36 | {"x":12, "y":1}, | ||
| 37 | |||
| 38 | {"x":0, "y":2}, | ||
| 39 | {"x":1, "y":2}, | ||
| 40 | {"x":2, "y":2}, | ||
| 41 | {"x":3, "y":2}, | ||
| 42 | {"x":4, "y":2}, | ||
| 43 | {"x":5, "y":2}, | ||
| 44 | {"x":6, "y":2}, | ||
| 45 | {"x":7, "y":2}, | ||
| 46 | {"x":8, "y":2}, | ||
| 47 | {"x":9, "y":2}, | ||
| 48 | {"x":10, "y":2}, | ||
| 49 | {"x":11, "y":2}, | ||
| 50 | {"x":12, "y":2}, | ||
| 51 | |||
| 52 | {"x":0, "y":3}, | ||
| 53 | {"x":1, "y":3}, | ||
| 54 | {"x":2, "y":3}, | ||
| 55 | {"x":3, "y":3}, | ||
| 56 | {"x":4, "y":3}, | ||
| 57 | {"x":5, "y":3}, | ||
| 58 | {"x":6, "y":3}, | ||
| 59 | {"x":7, "y":3}, | ||
| 60 | {"x":8, "y":3}, | ||
| 61 | {"x":9, "y":3}, | ||
| 62 | {"x":10, "y":3}, | ||
| 63 | {"x":11, "y":3}, | ||
| 64 | {"x":12, "y":3} | ||
| 65 | ] | ||
| 66 | }, | ||
| 67 | "LAYOUT_ortho_4x12": { | ||
| 68 | "layout": [ | ||
| 69 | |||
| 70 | {"x":0, "y":0}, | ||
| 71 | {"x":1, "y":0}, | ||
| 72 | {"x":2, "y":0}, | ||
| 73 | {"x":3, "y":0}, | ||
| 74 | {"x":4, "y":0}, | ||
| 75 | {"x":5, "y":0}, | ||
| 76 | |||
| 77 | {"x":7, "y":0}, | ||
| 78 | {"x":8, "y":0}, | ||
| 79 | {"x":9, "y":0}, | ||
| 80 | {"x":10, "y":0}, | ||
| 81 | {"x":11, "y":0}, | ||
| 82 | {"x":12, "y":0}, | ||
| 83 | |||
| 84 | {"x":0, "y":1}, | ||
| 85 | {"x":1, "y":1}, | ||
| 86 | {"x":2, "y":1}, | ||
| 87 | {"x":3, "y":1}, | ||
| 88 | {"x":4, "y":1}, | ||
| 89 | {"x":5, "y":1}, | ||
| 90 | |||
| 91 | {"x":7, "y":1}, | ||
| 92 | {"x":8, "y":1}, | ||
| 93 | {"x":9, "y":1}, | ||
| 94 | {"x":10, "y":1}, | ||
| 95 | {"x":11, "y":1}, | ||
| 96 | {"x":12, "y":1}, | ||
| 97 | |||
| 98 | {"x":0, "y":2}, | ||
| 99 | {"x":1, "y":2}, | ||
| 100 | {"x":2, "y":2}, | ||
| 101 | {"x":3, "y":2}, | ||
| 102 | {"x":4, "y":2}, | ||
| 103 | {"x":5, "y":2}, | ||
| 104 | |||
| 105 | {"x":7, "y":2}, | ||
| 106 | {"x":8, "y":2}, | ||
| 107 | {"x":9, "y":2}, | ||
| 108 | {"x":10, "y":2}, | ||
| 109 | {"x":11, "y":2}, | ||
| 110 | {"x":12, "y":2}, | ||
| 111 | |||
| 112 | {"x":0, "y":3}, | ||
| 113 | {"x":1, "y":3}, | ||
| 114 | {"x":2, "y":3}, | ||
| 115 | {"x":3, "y":3}, | ||
| 116 | {"x":4, "y":3}, | ||
| 117 | {"x":5, "y":3}, | ||
| 118 | |||
| 119 | {"x":7, "y":3}, | ||
| 120 | {"x":8, "y":3}, | ||
| 121 | {"x":9, "y":3}, | ||
| 122 | {"x":10, "y":3}, | ||
| 123 | {"x":11, "y":3}, | ||
| 124 | {"x":12, "y":3} | ||
| 125 | ] | ||
| 126 | } | ||
| 127 | } | ||
| 128 | } | ||
diff --git a/keyboards/montsinger/rebound/rev4/keymaps/default/keymap.c b/keyboards/montsinger/rebound/rev4/keymaps/default/keymap.c new file mode 100644 index 000000000..be038b1f5 --- /dev/null +++ b/keyboards/montsinger/rebound/rev4/keymaps/default/keymap.c | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 4 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 5 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 6 | // entirely and just use numbers. | ||
| 7 | |||
| 8 | enum layer_names { | ||
| 9 | _QWERTY, | ||
| 10 | _COLEMAK, | ||
| 11 | _DVORAK, | ||
| 12 | _LOWER, | ||
| 13 | _RAISE, | ||
| 14 | _ADJUST | ||
| 15 | }; | ||
| 16 | |||
| 17 | enum custom_keycodes { | ||
| 18 | QWERTY = SAFE_RANGE, | ||
| 19 | COLEMAK, | ||
| 20 | DVORAK | ||
| 21 | }; | ||
| 22 | |||
| 23 | #define LOWER MO(_LOWER) | ||
| 24 | #define RAISE MO(_RAISE) | ||
| 25 | #define ADJUST MO(_ADJUST) | ||
| 26 | |||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 28 | |||
| 29 | [_QWERTY] = LAYOUT_all( | ||
| 30 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 31 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_PGUP, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 32 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_PGDN, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , | ||
| 33 | ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_ENT, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 34 | ), | ||
| 35 | |||
| 36 | [_COLEMAK] = LAYOUT_all( | ||
| 37 | KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, | ||
| 38 | KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, _______, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, | ||
| 39 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, _______, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , | ||
| 40 | ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, _______, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 41 | ), | ||
| 42 | |||
| 43 | [_DVORAK] = LAYOUT_all( | ||
| 44 | KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC, | ||
| 45 | KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, _______, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, | ||
| 46 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, _______, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT , | ||
| 47 | ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, _______, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 48 | ), | ||
| 49 | |||
| 50 | [_LOWER] = LAYOUT_all( | ||
| 51 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 52 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 53 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______, | ||
| 54 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 55 | ), | ||
| 56 | |||
| 57 | [_RAISE] = LAYOUT_all( | ||
| 58 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 59 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 60 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, | ||
| 61 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 62 | ), | ||
| 63 | |||
| 64 | [_ADJUST] = LAYOUT_all( | ||
| 65 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, | ||
| 66 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, _______, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 69 | ) | ||
| 70 | }; | ||
| 71 | |||
| 72 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 73 | return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | ||
| 74 | } | ||
| 75 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 76 | switch (keycode) { | ||
| 77 | case QWERTY: | ||
| 78 | if (record->event.pressed) { | ||
| 79 | set_single_persistent_default_layer(_QWERTY); | ||
| 80 | } | ||
| 81 | break; | ||
| 82 | case COLEMAK: | ||
| 83 | if (record->event.pressed) { | ||
| 84 | set_single_persistent_default_layer(_COLEMAK); | ||
| 85 | } | ||
| 86 | break; | ||
| 87 | case DVORAK: | ||
| 88 | if (record->event.pressed) { | ||
| 89 | set_single_persistent_default_layer(_DVORAK); | ||
| 90 | } | ||
| 91 | break; | ||
| 92 | } | ||
| 93 | return true; | ||
| 94 | } | ||
| 95 | |||
| 96 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 97 | if (clockwise) { | ||
| 98 | tap_code16(S(KC_VOLD)); | ||
| 99 | } else { | ||
| 100 | tap_code16(KC_VOLU); | ||
| 101 | } | ||
| 102 | } | ||
diff --git a/keyboards/montsinger/rebound/rev4/keymaps/rossman360/keymap.c b/keyboards/montsinger/rebound/rev4/keymaps/rossman360/keymap.c new file mode 100644 index 000000000..a0c3ab639 --- /dev/null +++ b/keyboards/montsinger/rebound/rev4/keymaps/rossman360/keymap.c | |||
| @@ -0,0 +1,120 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | #include "rossman360.h" | ||
| 3 | |||
| 4 | #define PGMOD LT(_NUM, KC_PGDN) | ||
| 5 | #define TABMOD LT(_FN1, KC_TAB) | ||
| 6 | #define SPCMOD LT(_FN1, KC_SPACE) | ||
| 7 | #define ENTMOD LT(_FN2, KC_ENTER) | ||
| 8 | #define ESCMOD LT(_NUM, KC_ESC) | ||
| 9 | #define RSMOD LT(_FN1, KC_RSHIFT) | ||
| 10 | # | ||
| 11 | |||
| 12 | enum layer_names { | ||
| 13 | _BASE, | ||
| 14 | _DEL, | ||
| 15 | _FN1, | ||
| 16 | _FN2, | ||
| 17 | _NUM, | ||
| 18 | }; | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | |||
| 22 | [_BASE] = LAYOUT_all( | ||
| 23 | KC_ESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , NTAB , | ||
| 24 | JUMPBACK, KC_A , KC_S , KC_D , KC_F , KC_G ,MO(_DEL), KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, | ||
| 25 | KC_LSFT , KC_Z , KC_X , KC_C , KC_V , KC_B , LM(_FN1, MOD_LALT), KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_MINS, | ||
| 26 | CMDBSP , ALTDEL , KC_NO , CTRLSP , TABMOD , PGMOD , QUIT , ENTMOD , SPCMOD , MO(_DEL),KC_NO , KC_BSPC, KC_DEL | ||
| 27 | ), | ||
| 28 | |||
| 29 | [_FN1] = LAYOUT_all( | ||
| 30 | _______, TAB1 , TAB2 , TAB3 , TAB4 , _______, _______, UNDO , _______, _______, _______, CTAB , | ||
| 31 | KC_CAPS, _______, _______, _______, _______, _______, _______, KC_HOME, KC_LEFT, KC_UP , KC_RIGHT,KC_END , KC_NO , | ||
| 32 | _______, _______, XPANDR , _______, PMERGE , _______, _______, _______, PMERGE , KC_DOWN, _______, _______, EMDASH , | ||
| 33 | WREFRESH,_______, _______, _______, LWORD , RWORD , _______, KC_NO , _______, KC_NO , _______, _______, _______ | ||
| 34 | ), | ||
| 35 | |||
| 36 | [_FN2] = LAYOUT_all( | ||
| 37 | _______, SPEAK1 , SPEAK2 , SPEAK3 , SPEAK4 , _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 40 | _______, _______, _______, _______, PARADOWN, CSPEAK, _______, _______, KC_NO , KC_NO , _______, _______, _______ | ||
| 41 | ), | ||
| 42 | |||
| 43 | [_DEL] = LAYOUT_all( | ||
| 44 | RESET, _______, _______, _______, _______, _______, _______, UNDO , _______, _______, _______, CTAB , | ||
| 45 | REMCAPS, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_UP ,KC_RIGHT, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______, _______, _______, | ||
| 47 | _______, _______, _______, BLINE , KC_BSPC, BWORD , _______, KC_NO , KC_NO , _______, _______, _______, _______ | ||
| 48 | ), | ||
| 49 | |||
| 50 | [_NUM] = LAYOUT_all( | ||
| 51 | KC_GRV , KC_1 , KC_7 , KC_8 , KC_9 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_MINS, KC_EQL, | ||
| 52 | KC_CAPS, _______, KC_4 , KC_5 , KC_6 , KC_BSPC, KC_LBRC, KC_MINS, KC_4 , KC_5 , KC_6 , KC_COLN, _______, | ||
| 53 | KC_COMM, KC_DOT , KC_1 , KC_2 , KC_3 ,KC_ENTER, KC_RBRC, KC_RBRC, KC_1 , KC_2 , KC_3 , KC_BSLS, _______, | ||
| 54 | _______, _______, _______, _______, KC_0 , _______, _______, KC_NO , KC_NO , KC_0 , _______, _______, _______ | ||
| 55 | ) | ||
| 56 | }; | ||
| 57 | |||
| 58 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 59 | switch(get_highest_layer(layer_state)){ | ||
| 60 | case _BASE: | ||
| 61 | if (clockwise) { | ||
| 62 | tap_code16(KC_VOLD); | ||
| 63 | } else { | ||
| 64 | tap_code16(KC_VOLU); | ||
| 65 | } | ||
| 66 | break; | ||
| 67 | case _DEL: | ||
| 68 | if (clockwise) { | ||
| 69 | tap_code16(KC_F11); | ||
| 70 | } else { | ||
| 71 | tap_code16(KC_F3); | ||
| 72 | } | ||
| 73 | break; | ||
| 74 | |||
| 75 | case _FN1: | ||
| 76 | if (clockwise) { | ||
| 77 | tap_code16(S(KC_TAB)); | ||
| 78 | } else { | ||
| 79 | tap_code16(KC_TAB); | ||
| 80 | } | ||
| 81 | break; | ||
| 82 | } | ||
| 83 | } | ||
| 84 | |||
| 85 | #ifdef OLED_DRIVER_ENABLE | ||
| 86 | void oled_task_user(void) { | ||
| 87 | // Host Keyboard Layer Status | ||
| 88 | oled_write_P(PSTR(""), false); | ||
| 89 | |||
| 90 | switch (get_highest_layer(layer_state)) { | ||
| 91 | case _BASE: | ||
| 92 | oled_write_P(PSTR("Rebound\n"), false); | ||
| 93 | oled_write_P(PSTR("Rev3.1\n"), false); | ||
| 94 | break; | ||
| 95 | case _FN1: | ||
| 96 | oled_write_P(PSTR("Fn\n"), false); | ||
| 97 | break; | ||
| 98 | case _FN2: | ||
| 99 | oled_write_P(PSTR("Para\n"), false); | ||
| 100 | break; | ||
| 101 | case _NUM: | ||
| 102 | oled_write_P(PSTR("Num\n"), false); | ||
| 103 | break; | ||
| 104 | case _DEL: | ||
| 105 | oled_write_P(PSTR("Del\n"), false); | ||
| 106 | break; | ||
| 107 | default: | ||
| 108 | // Or use the write_ln shortcut over adding '\n' to the end of your string | ||
| 109 | oled_write_ln_P(PSTR("Undefined"), false); | ||
| 110 | } | ||
| 111 | |||
| 112 | // Host Keyboard LED Status | ||
| 113 | led_t led_state = host_keyboard_led_state(); | ||
| 114 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | ||
| 115 | oled_write_P(led_state.caps_lock ? PSTR("CAPS") : PSTR(" "), false); | ||
| 116 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | ||
| 117 | |||
| 118 | } | ||
| 119 | |||
| 120 | #endif | ||
diff --git a/keyboards/montsinger/rebound/rev4/keymaps/rossman360/rules.mk b/keyboards/montsinger/rebound/rev4/keymaps/rossman360/rules.mk new file mode 100644 index 000000000..fa835793e --- /dev/null +++ b/keyboards/montsinger/rebound/rev4/keymaps/rossman360/rules.mk | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | MOUSEKEY_ENABLE = no | ||
| 2 | CONSOLE_ENABLE = no | ||
| 3 | COMMAND_ENABLE = no | ||
| 4 | OLED_DRIVER_ENABLE = no | ||
diff --git a/keyboards/montsinger/rebound/rev4/rev4.h b/keyboards/montsinger/rebound/rev4/rev4.h new file mode 100644 index 000000000..923f7d1a2 --- /dev/null +++ b/keyboards/montsinger/rebound/rev4/rev4.h | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* Copyright 2020 Ross Montsinger | ||
| 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 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * The first section contains all of the arguments representing the | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT_ortho_4x12( \ | ||
| 29 | K00, K70, K01, K71, K02, K72, K04, K84, K05, K75, K06, K76, \ | ||
| 30 | K10, K60, K11, K61, K12, K62, K14, K74, K15, K65, K16, K66, \ | ||
| 31 | K20, K50, K21, K51, K22, K52, K24, K64, K25, K55, K26, K56,\ | ||
| 32 | K30, K40, K31, K41, K32, K42, K34, K54, K35, K45, K36, K46\ | ||
| 33 | ) { \ | ||
| 34 | { K00, K01, K02, K04, K05, K06, K07}, \ | ||
| 35 | { K10, K11, K12, K14, K15, K16, K17 }, \ | ||
| 36 | { K20, K21, K22, K24, K25, K26, K27 }, \ | ||
| 37 | { K30, K31, K32, K34, K35, K36, K37 }, \ | ||
| 38 | { K40, K41, K42, K44, K45, K46, K47 }, \ | ||
| 39 | { K50, K51, K52, K54, K55, K56, K57 }, \ | ||
| 40 | { K60, K61, K62, K64, K65, K66, K67 }, \ | ||
| 41 | { K70, K71, K72, K74, K75, K76, K77 } \ | ||
| 42 | } | ||
| 43 | |||
| 44 | #define LAYOUT_all( \ | ||
| 45 | K00, K70, K01, K71, K02, K72, K04, K74, K05, K75, K06, K76, \ | ||
| 46 | K10, K60, K11, K61, K12, K62, K13, K14, K64, K15, K65, K16, K66, \ | ||
| 47 | K20, K50, K21, K51, K22, K52, K23, K24, K54, K25, K55, K26, K56,\ | ||
| 48 | K30, K40, K31, K41, K32, K42, K33, K34, K44, K35, K45, K36, K46\ | ||
| 49 | ) { \ | ||
| 50 | { K00, K01, K02, KC_NO, K04, K05, K06}, \ | ||
| 51 | { K10, K11, K12, K13, K14, K15, K16}, \ | ||
| 52 | { K20, K21, K22, K23, K24, K25, K26}, \ | ||
| 53 | { K30, K31, K32, K33, K34, K35, K36}, \ | ||
| 54 | { K40, K41, K42, KC_NO, K44, K45, K46}, \ | ||
| 55 | { K50, K51, K52, KC_NO, K54, K55, K56}, \ | ||
| 56 | { K60, K61, K62, KC_NO, K64, K65, K66}, \ | ||
| 57 | { K70, K71, K72, KC_NO, K74, K75, K76} \ | ||
| 58 | } | ||
| 59 | |||
diff --git a/keyboards/montsinger/rebound/rev4/rules.mk b/keyboards/montsinger/rebound/rev4/rules.mk new file mode 100644 index 000000000..075970923 --- /dev/null +++ b/keyboards/montsinger/rebound/rev4/rules.mk | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = atmel-dfu | ||
| 13 | |||
| 14 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 15 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 16 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 17 | CONSOLE_ENABLE = yes # Console for debug | ||
| 18 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 19 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 20 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 21 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 22 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 23 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 24 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 25 | MIDI_ENABLE = no # MIDI support | ||
| 26 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 27 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 28 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 29 | ENCODER_ENABLE = yes | ||
| 30 | |||
| 31 | LAYOUTS = ortho_4x12 | ||
| 32 | LAYOUTS_HAS_RGB = no | ||
| 33 | |||
