aboutsummaryrefslogtreecommitdiff
path: root/keyboards/montsinger
diff options
context:
space:
mode:
authorRossman360 <53881724+Rossman360@users.noreply.github.com>2020-01-19 16:07:35 -0500
committerDrashna Jaelre <drashna@live.com>2020-01-19 13:07:34 -0800
commitdd2b793c0c288509de7ca9d2e16c2cb4e3f8d267 (patch)
tree7595d7faa8e409e56355405ccceba412bcb92cf0 /keyboards/montsinger
parentef33befa06f13384c06405174eb370d11a31491f (diff)
downloadqmk_firmware-dd2b793c0c288509de7ca9d2e16c2cb4e3f8d267.tar.gz
qmk_firmware-dd2b793c0c288509de7ca9d2e16c2cb4e3f8d267.zip
[Keyboard] Rebound keyboard add (#7886)
* create Rebound keyboard * proofread * update decade * layer enums * revert enum layer changes * line spacing and such * product ID and punctuation * terminating terminating slashes * layer enums * remove slashes * rules change, rgb and spacing * plural layouts rgb rulez
Diffstat (limited to 'keyboards/montsinger')
-rw-r--r--keyboards/montsinger/rebound/config.h62
-rw-r--r--keyboards/montsinger/rebound/keymaps/default/keymap.c163
-rwxr-xr-xkeyboards/montsinger/rebound/readme.md15
-rw-r--r--keyboards/montsinger/rebound/rebound.c1
-rw-r--r--keyboards/montsinger/rebound/rebound.h39
-rw-r--r--keyboards/montsinger/rebound/rules.mk32
6 files changed, 312 insertions, 0 deletions
diff --git a/keyboards/montsinger/rebound/config.h b/keyboards/montsinger/rebound/config.h
new file mode 100644
index 000000000..271664d96
--- /dev/null
+++ b/keyboards/montsinger/rebound/config.h
@@ -0,0 +1,62 @@
1/*
2Copyright 2020 Ross Montsinger
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7This program is distributed in the hope that it will be useful,
8but WITHOUT ANY WARRANTY; without even the implied warranty of
9MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10GNU General Public License for more details.
11You should have received a copy of the GNU General Public License
12along 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 4
31#define MATRIX_COLS 12
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
40diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43 */
44
45#define MATRIX_ROW_PINS { D1, B5, B2, B6 }
46#define MATRIX_COL_PINS { D0, D4, C6, D7, E6, B4, B3, B1, F7, F6, F5, F4 }
47#define UNUSED_PINS { D2, D3 }
48
49/* COL2ROW, ROW2COL*/
50#define DIODE_DIRECTION ROW2COL
51
52/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
53#define DEBOUNCE 5
54
55/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
56#define LOCKING_SUPPORT_ENABLE
57/* Locking resynchronize hack */
58#define LOCKING_RESYNC_ENABLE
59
60/* Bootmagic Lite key configuration */
61// #define BOOTMAGIC_LITE_ROW 0
62// #define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/montsinger/rebound/keymaps/default/keymap.c b/keyboards/montsinger/rebound/keymaps/default/keymap.c
new file mode 100644
index 000000000..94d9ef91d
--- /dev/null
+++ b/keyboards/montsinger/rebound/keymaps/default/keymap.c
@@ -0,0 +1,163 @@
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
8enum layer_names
9{
10 _QWERTY,
11 _COLEMAK,
12 _DVORAK,
13 _LOWER,
14 _RAISE,
15 _ADJUST
16};
17
18enum custom_keycodes {
19 QWERTY = SAFE_RANGE,
20 COLEMAK,
21 DVORAK
22};
23
24#define LOWER MO(_LOWER)
25#define RAISE MO(_RAISE)
26#define ADJUST MO(_ADJUST)
27
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
29/* Qwerty
30 * ,-----------------------------------------------------------------------------------.
31 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
32 * |------+------+------+------+------+-------------+------+------+------+------+------|
33 * | Esc | A | S | D | F | G | H | J | K | L | ; | " |
34 * |------+------+------+------+------+------|------+------+------+------+------+------|
35 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
36 * |------+------+------+------+------+------+------+------+------+------+------+------|
37 * |Adjust| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
38 * `-----------------------------------------------------------------------------------'
39 */
40[_QWERTY] = LAYOUT_ortho_4x12(
41 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
42 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
43 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
44 ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
45),
46
47/* Colemak
48 * ,-----------------------------------------------------------------------------------.
49 * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
50 * |------+------+------+------+------+-------------+------+------+------+------+------|
51 * | Esc | A | R | S | T | D | H | N | E | I | O | ' |
52 * |------+------+------+------+------+------|------+------+------+------+------+------|
53 * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter |
54 * |------+------+------+------+------+------+------+------+------+------+------+------|
55 * |Adjust| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right |
56 * `-----------------------------------------------------------------------------------'
57 */
58[_COLEMAK] = LAYOUT_ortho_4x12(
59 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
60 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
61 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
62 ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
63),
64
65/* Dvorak
66 * ,-----------------------------------------------------------------------------------.
67 * | Tab | ' | , | . | P | Y | F | G | C | R | L | Bksp |
68 * |------+------+------+------+------+-------------+------+------+------+------+------|
69 * | Esc | A | O | E | U | I | D | H | T | N | S | / |
70 * |------+------+------+------+------+------|------+------+------+------+------+------|
71 * | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter |
72 * |------+------+------+------+------+------+------+------+------+------+------+------|
73 * |Adjust| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right |
74 * `-----------------------------------------------------------------------------------'
75 */
76[_DVORAK] = LAYOUT_ortho_4x12(
77 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
78 KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH,
79 KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT ,
80 ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
81),
82
83/* Lower
84 * ,-----------------------------------------------------------------------------------.
85 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del |
86 * |------+------+------+------+------+-------------+------+------+------+------+------|
87 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
88 * |------+------+------+------+------+------|------+------+------+------+------+------|
89 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | |
90 * |------+------+------+------+------+------+------+------+------+------+------+------|
91 * | | | | | | | | Next | Vol- | Vol+ | Play |
92 * `-----------------------------------------------------------------------------------'
93 */
94[_LOWER] = LAYOUT_ortho_4x12(
95 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
96 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
97 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______,
98 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
99),
100
101/* Raise
102 * ,-----------------------------------------------------------------------------------.
103 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del |
104 * |------+------+------+------+------+-------------+------+------+------+------+------|
105 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
106 * |------+------+------+------+------+------|------+------+------+------+------+------|
107 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | | |
108 * |------+------+------+------+------+------+------+------+------+------+------+------|
109 * | | | | | | | | Next | Vol- | Vol+ | Play |
110 * `-----------------------------------------------------------------------------------'
111 */
112[_RAISE] = LAYOUT_ortho_4x12(
113 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
114 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
115 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______,
116 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
117),
118
119/* Adjust (Lower + Raise)
120 * ,-----------------------------------------------------------------------------------.
121 * | | Reset| | | | | | | | | | Del |
122 * |------+------+------+------+------+-------------+------+------+------+------+------|
123 * | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | |
124 * |------+------+------+------+------+------|------+------+------+------+------+------|
125 * | | | | | | | | | | | | |
126 * |------+------+------+------+------+------+------+------+------+------+------+------|
127 * | | | | | | | | | | | |
128 * `-----------------------------------------------------------------------------------'
129 */
130[_ADJUST] = LAYOUT_ortho_4x12(
131 _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL,
132 _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______,
133 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
134 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
135)
136
137
138};
139
140layer_state_t layer_state_set_user(layer_state_t state) {
141 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
142}
143
144bool process_record_user(uint16_t keycode, keyrecord_t *record) {
145 switch (keycode) {
146 case QWERTY:
147 if (record->event.pressed) {
148 set_single_persistent_default_layer(_QWERTY);
149 }
150 return false;
151 case COLEMAK:
152 if (record->event.pressed) {
153 set_single_persistent_default_layer(_COLEMAK);
154 }
155 return false;
156 case DVORAK:
157 if (record->event.pressed) {
158 set_single_persistent_default_layer(_DVORAK);
159 }
160 return false;
161 }
162 return true;
163}
diff --git a/keyboards/montsinger/rebound/readme.md b/keyboards/montsinger/rebound/readme.md
new file mode 100755
index 000000000..d634408cc
--- /dev/null
+++ b/keyboards/montsinger/rebound/readme.md
@@ -0,0 +1,15 @@
1# Rebound
2
3![Rebound](https://imgur.com/zMPhNmm.jpg)
4
5A conjoined-split 40% 4x12 ortholinear keyboard made and sold by Montsinger. [More info on Montsinger.net](https://montsinger.net).
6
7* Keyboard Maintainer: [Rossman360](https://github.com/rossman360)
8* Hardware Supported: Pro Micro, Elite-C
9* Hardware Availability: [Montsinger.net](https://montsinger.net)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make montsinger/rebound:default
14
15See 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) \ No newline at end of file
diff --git a/keyboards/montsinger/rebound/rebound.c b/keyboards/montsinger/rebound/rebound.c
new file mode 100644
index 000000000..fbb10be71
--- /dev/null
+++ b/keyboards/montsinger/rebound/rebound.c
@@ -0,0 +1 @@
#include "rebound.h"
diff --git a/keyboards/montsinger/rebound/rebound.h b/keyboards/montsinger/rebound/rebound.h
new file mode 100644
index 000000000..0ba4c51ce
--- /dev/null
+++ b/keyboards/montsinger/rebound/rebound.h
@@ -0,0 +1,39 @@
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
29#define LAYOUT_ortho_4x12( \
30 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
31 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
32 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B,\
33 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B\
34 ) { \
35 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
36 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
37 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
38 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B } \
39}
diff --git a/keyboards/montsinger/rebound/rules.mk b/keyboards/montsinger/rebound/rules.mk
new file mode 100644
index 000000000..efa313303
--- /dev/null
+++ b/keyboards/montsinger/rebound/rules.mk
@@ -0,0 +1,32 @@
1# MCU name
2MCU = 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
12BOOTLOADER = atmel-dfu
13
14BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
15MOUSEKEY_ENABLE = yes # Mouse keys
16EXTRAKEY_ENABLE = yes # Audio control and System control
17CONSOLE_ENABLE = yes # Console for debug
18COMMAND_ENABLE = yes # Commands for debug and configuration
19# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
20SLEEP_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
22NKRO_ENABLE = no # USB Nkey Rollover
23BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
24RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
25MIDI_ENABLE = no # MIDI support
26BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
27AUDIO_ENABLE = no # Audio output on port C6
28FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
29HD44780_ENABLE = no # Enable support for HD44780 based LCDs
30
31LAYOUTS = ortho_4x12
32LAYOUTS_HAS_RGB=no