aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRossman360 <53881724+Rossman360@users.noreply.github.com>2020-06-25 02:09:06 -0400
committerGitHub <noreply@github.com>2020-06-24 23:09:06 -0700
commit7a710fb426024d2b4591de3c375da54bb78ae363 (patch)
treeb5f5d3a81c6192b24105b1c1e922c4f9f2947e5b
parentc8b35b62307072072ee0ad8cbf162a09b9c74a64 (diff)
downloadqmk_firmware-7a710fb426024d2b4591de3c375da54bb78ae363.tar.gz
qmk_firmware-7a710fb426024d2b4591de3c375da54bb78ae363.zip
[Keyboard] adding Rewind keyboard (#9497)
* adding rewind * keymap cleanup * keymap cleanup * improve keymap * improved keymap * reduntant * deletions * typos * readme img size and default bootloader
-rw-r--r--keyboards/montsinger/rewind/config.h62
-rw-r--r--keyboards/montsinger/rewind/info.json68
-rw-r--r--keyboards/montsinger/rewind/keymaps/default/keymap.c40
-rw-r--r--keyboards/montsinger/rewind/keymaps/rossman360/keymap.c56
-rwxr-xr-xkeyboards/montsinger/rewind/readme.md15
-rw-r--r--keyboards/montsinger/rewind/rewind.c1
-rw-r--r--keyboards/montsinger/rewind/rewind.h41
-rw-r--r--keyboards/montsinger/rewind/rules.mk28
8 files changed, 311 insertions, 0 deletions
diff --git a/keyboards/montsinger/rewind/config.h b/keyboards/montsinger/rewind/config.h
new file mode 100644
index 000000000..f27622212
--- /dev/null
+++ b/keyboards/montsinger/rewind/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 Rewind
26#define DESCRIPTION "5x10 ortho that fits inside a puffy VHS case"
27
28/* key matrix size */
29
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 10
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 { B5, B4, D2, D3, B2 }
46#define MATRIX_COL_PINS { F6, F7, B1, B3, E6, D7, C6, D4, D0, D1 }
47#define UNUSED_PINS { F4, F5, B6 }
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 \ No newline at end of file
diff --git a/keyboards/montsinger/rewind/info.json b/keyboards/montsinger/rewind/info.json
new file mode 100644
index 000000000..315670994
--- /dev/null
+++ b/keyboards/montsinger/rewind/info.json
@@ -0,0 +1,68 @@
1 {
2 "keyboard":"montsinger/rewind",
3 "url": "https://montsinger.net",
4 "maintainer": "rossman360",
5 "width": 10,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_ortho_5x10": {
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
21 {"x":0, "y":1},
22 {"x":1, "y":1},
23 {"x":2, "y":1},
24 {"x":3, "y":1},
25 {"x":4, "y":1},
26 {"x":5, "y":1},
27 {"x":6, "y":1},
28 {"x":7, "y":1},
29 {"x":8, "y":1},
30 {"x":9, "y":1},
31
32 {"x":0, "y":2},
33 {"x":1, "y":2},
34 {"x":2, "y":2},
35 {"x":3, "y":2},
36 {"x":4, "y":2},
37 {"x":5, "y":2},
38 {"x":6, "y":2},
39 {"x":7, "y":2},
40 {"x":8, "y":2},
41 {"x":9, "y":2},
42
43 {"x":0, "y":3},
44 {"x":1, "y":3},
45 {"x":2, "y":3},
46 {"x":3, "y":3},
47 {"x":4, "y":3},
48 {"x":5, "y":3},
49 {"x":6, "y":3},
50 {"x":7, "y":3},
51 {"x":8, "y":3},
52 {"x":9, "y":3},
53
54 {"x":0, "y":4},
55 {"x":1, "y":4},
56 {"x":2, "y":4},
57 {"x":3, "y":4},
58 {"x":4, "y":4},
59 {"x":5, "y":4},
60 {"x":6, "y":4},
61 {"x":7, "y":4},
62 {"x":8, "y":4},
63 {"x":9, "y":4}
64 ]
65 }
66 }
67}
68
diff --git a/keyboards/montsinger/rewind/keymaps/default/keymap.c b/keyboards/montsinger/rewind/keymaps/default/keymap.c
new file mode 100644
index 000000000..861c04faf
--- /dev/null
+++ b/keyboards/montsinger/rewind/keymaps/default/keymap.c
@@ -0,0 +1,40 @@
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 _FN1,
12 _SYM
13};
14
15const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
16
17[_QWERTY] = LAYOUT_ortho_5x10(
18 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
19 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
20 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT,
21 KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
22 KC_LCTL, KC_LALT, KC_LGUI, KC_LSFT, MO(_SYM),KC_ENTER,KC_SPC, MO(_FN1),KC_BSPC, KC_DEL
23),
24
25[_FN1] = LAYOUT_ortho_5x10(
26 KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
27 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
28 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME, KC_LEFT, KC_UP, KC_RIGHT,KC_END,
29 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DOWN, XXXXXXX, XXXXXXX,
30 RESET, XXXXXXX, XXXXXXX, _______, KC_BSPC, KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
31),
32
33[_SYM] = LAYOUT_ortho_5x10(
34 KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_PLUS,
35 KC_TAB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
36 KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_SCLN,
37 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSLS,
38 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
39),
40};
diff --git a/keyboards/montsinger/rewind/keymaps/rossman360/keymap.c b/keyboards/montsinger/rewind/keymaps/rossman360/keymap.c
new file mode 100644
index 000000000..152a30523
--- /dev/null
+++ b/keyboards/montsinger/rewind/keymaps/rossman360/keymap.c
@@ -0,0 +1,56 @@
1#include QMK_KEYBOARD_H
2#include "rossman360.h"
3
4// Each layer gets a name for readability, which is then used in the keymap matrix below.
5// The underscores don't mean anything - you can have a layer called STUFF or any other name.
6// Layer names don't all need to be of the same length, obviously, and you can also skip them
7// entirely and just use numbers.
8
9enum layer_names {
10 _BASE,
11 _DEL,
12 _FN1,
13 _FN2,
14 _NUM,
15};
16
17#define PGMOD LT(_NUM, KC_PGDN)
18#define SPCMOD LT(_FN1, KC_SPACE)
19#define ZSHIFT MT(MOD_LSFT, KC_Z)
20#define TABMOD LT(_FN1, KC_TAB)
21#define ESCMOD LT(_FN1, KC_1)
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24
25[_BASE] = LAYOUT_ortho_5x10(
26 ESCMOD, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
27 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
28 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT,
29 ZSHIFT, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
30 KC_BSPC, ALTDEL, KC_LCTRL,TABMOD, PGMOD , KC_ENTER,SPCMOD, MO(_DEL), KC_BSPC, KC_DEL
31),
32
33[_FN1] = LAYOUT_ortho_5x10(
34 XXXXXXX, KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET,
35 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
36 JUMPBACK,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME, KC_LEFT, KC_UP, KC_RIGHT,KC_END,
37 _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, PMERGE, KC_DOWN, XXXXXXX, XXXXXXX,
38 XXXXXXX, XXXXXXX, XXXXXXX, LWORD, RWORD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
39),
40
41[_DEL] = LAYOUT_ortho_5x10(
42 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
43 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
44 REMCAPS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
45 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
46 XXXXXXX, XXXXXXX, BLINE , KC_BSPC, BWORD , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
47),
48
49[_NUM] = LAYOUT_ortho_5x10(
50 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, NTAB,
51 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_7, KC_8, KC_9, CTAB,
52 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_4, KC_5, KC_6, KC_SCLN,
53 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_1, KC_2, KC_3, KC_MINS,
54 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_0, XXXXXXX, XXXXXXX
55),
56};
diff --git a/keyboards/montsinger/rewind/readme.md b/keyboards/montsinger/rewind/readme.md
new file mode 100755
index 000000000..d0f4a6fe7
--- /dev/null
+++ b/keyboards/montsinger/rewind/readme.md
@@ -0,0 +1,15 @@
1# Rewind
2
3[Rewind](https://i.imgur.com/3QZbLr0l.jpg)
4
5A 5x10 ortholinear keyboard that fits inside puffy VHS cases, 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: Rewind; Pro Micro or 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/rewind: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)
diff --git a/keyboards/montsinger/rewind/rewind.c b/keyboards/montsinger/rewind/rewind.c
new file mode 100644
index 000000000..6796ef8d2
--- /dev/null
+++ b/keyboards/montsinger/rewind/rewind.c
@@ -0,0 +1 @@
#include "rewind.h"
diff --git a/keyboards/montsinger/rewind/rewind.h b/keyboards/montsinger/rewind/rewind.h
new file mode 100644
index 000000000..3019c7c03
--- /dev/null
+++ b/keyboards/montsinger/rewind/rewind.h
@@ -0,0 +1,41 @@
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_5x10( \
29 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
30 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
31 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29,\
32 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39,\
33 K40, K41, K42, K43, K44, K45, K46, K47, K48, K49\
34 ) { \
35 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \
36 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \
37 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \
38 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39 }, \
39 { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49 } \
40}
41
diff --git a/keyboards/montsinger/rewind/rules.mk b/keyboards/montsinger/rewind/rules.mk
new file mode 100644
index 000000000..a59793d6b
--- /dev/null
+++ b/keyboards/montsinger/rewind/rules.mk
@@ -0,0 +1,28 @@
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 = caterina
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