aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/mountainblocks/mb17/config.h158
-rw-r--r--keyboards/mountainblocks/mb17/info.json12
-rw-r--r--keyboards/mountainblocks/mb17/keymaps/default/keymap.c60
-rw-r--r--keyboards/mountainblocks/mb17/keymaps/default/readme.md1
-rw-r--r--keyboards/mountainblocks/mb17/keymaps/via/keymap.c76
-rw-r--r--keyboards/mountainblocks/mb17/keymaps/via/rules.mk2
-rw-r--r--keyboards/mountainblocks/mb17/mb17.c17
-rw-r--r--keyboards/mountainblocks/mb17/mb17.h35
-rw-r--r--keyboards/mountainblocks/mb17/readme.md13
-rw-r--r--keyboards/mountainblocks/mb17/rules.mk32
10 files changed, 406 insertions, 0 deletions
diff --git a/keyboards/mountainblocks/mb17/config.h b/keyboards/mountainblocks/mb17/config.h
new file mode 100644
index 000000000..7db47ff94
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/config.h
@@ -0,0 +1,158 @@
1/*
2Copyright 2020 mechmerlin
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along 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 0x4D42
24#define PRODUCT_ID 0x0017
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Mountainblocks
27#define PRODUCT MB17
28#define DESCRIPTION A custom numpad
29
30/* key matrix size */
31#define MATRIX_ROWS 5
32#define MATRIX_COLS 4
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#define MATRIX_ROW_PINS { F4, B1, B3, B2, B6 }
45#define MATRIX_COL_PINS { F7, E6, D7, C6 }
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL*/
49#define DIODE_DIRECTION COL2ROW
50
51/*
52 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
53 */
54#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
55
56
57
58/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
59#define DEBOUNCE 5
60
61/* define if matrix has ghost (lacks anti-ghosting diodes) */
62//#define MATRIX_HAS_GHOST
63
64/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
65#define LOCKING_SUPPORT_ENABLE
66/* Locking resynchronize hack */
67#define LOCKING_RESYNC_ENABLE
68
69/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
70 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
71 */
72// #define GRAVE_ESC_CTRL_OVERRIDE
73
74/*
75 * Force NKRO
76 *
77 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
78 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
79 * makefile for this to work.)
80 *
81 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
82 * until the next keyboard reset.
83 *
84 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
85 * fully operational during normal computer usage.
86 *
87 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
88 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
89 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
90 * power-up.
91 *
92 */
93//#define FORCE_NKRO
94
95/*
96 * Magic Key Options
97 *
98 * Magic keys are hotkey commands that allow control over firmware functions of
99 * the keyboard. They are best used in combination with the HID Listen program,
100 * found here: https://www.pjrc.com/teensy/hid_listen.html
101 *
102 * The options below allow the magic key functionality to be changed. This is
103 * useful if your keyboard/keypad is missing keys and you want magic key support.
104 *
105 */
106
107/* key combination for magic key command */
108/* defined by default; to change, uncomment and set to the combination you want */
109// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
110
111/* control how magic key switches layers */
112//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
113//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
114//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
115
116/* override magic key keymap */
117//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
118//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
119//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
120//#define MAGIC_KEY_HELP H
121//#define MAGIC_KEY_HELP_ALT SLASH
122//#define MAGIC_KEY_DEBUG D
123//#define MAGIC_KEY_DEBUG_MATRIX X
124//#define MAGIC_KEY_DEBUG_KBD K
125//#define MAGIC_KEY_DEBUG_MOUSE M
126//#define MAGIC_KEY_VERSION V
127//#define MAGIC_KEY_STATUS S
128//#define MAGIC_KEY_CONSOLE C
129//#define MAGIC_KEY_LAYER0 0
130//#define MAGIC_KEY_LAYER0_ALT GRAVE
131//#define MAGIC_KEY_LAYER1 1
132//#define MAGIC_KEY_LAYER2 2
133//#define MAGIC_KEY_LAYER3 3
134//#define MAGIC_KEY_LAYER4 4
135//#define MAGIC_KEY_LAYER5 5
136//#define MAGIC_KEY_LAYER6 6
137//#define MAGIC_KEY_LAYER7 7
138//#define MAGIC_KEY_LAYER8 8
139//#define MAGIC_KEY_LAYER9 9
140//#define MAGIC_KEY_BOOTLOADER B
141//#define MAGIC_KEY_BOOTLOADER_ALT ESC
142//#define MAGIC_KEY_LOCK CAPS
143//#define MAGIC_KEY_EEPROM E
144//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
145//#define MAGIC_KEY_NKRO N
146//#define MAGIC_KEY_SLEEP_LED Z
147
148
149/* disable these deprecated features by default */
150#ifndef LINK_TIME_OPTIMIZATION_ENABLE
151 #define NO_ACTION_MACRO
152 #define NO_ACTION_FUNCTION
153#endif
154
155
156
157
158
diff --git a/keyboards/mountainblocks/mb17/info.json b/keyboards/mountainblocks/mb17/info.json
new file mode 100644
index 000000000..02f402184
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "MB17",
3 "url": "",
4 "maintainer": "qmk",
5 "width": 4,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_numpad_5x4": {
9 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":1, "h":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":0, "y":4, "w":2}, {"x":2, "y":4}, {"x":3, "y":3, "h":2}]
10 }
11 }
12}
diff --git a/keyboards/mountainblocks/mb17/keymaps/default/keymap.c b/keyboards/mountainblocks/mb17/keymaps/default/keymap.c
new file mode 100644
index 000000000..13c8cf812
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/keymaps/default/keymap.c
@@ -0,0 +1,60 @@
1/* Copyright 2020 mechmerlin
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 /*
20 * ┌───┬───┬───┬───┐
21 * │TG1│ / │ * │ - │
22 * ├───┼───┼───┼───┤
23 * │ 7 │ 8 │ 9 │ │
24 * ├───┼───┼───┤ + │
25 * │ 4 │ 5 │ 6 │ │
26 * ├───┼───┼───┼───┤
27 * │ 1 │ 2 │ 3 │ │
28 * ├───┴───┼───┤Ent│
29 * │ 0 │ . │ │
30 * └───────┴───┴───┘
31 */
32 [0] = LAYOUT_numpad_5x4(
33 TG(1), KC_PSLS, KC_PAST, KC_PMNS,
34 KC_P7, KC_P8, KC_P9,
35 KC_P4, KC_P5, KC_P6, KC_PPLS,
36 KC_P1, KC_P2, KC_P3,
37 KC_P0, KC_PDOT, KC_PENT
38 ),
39
40 /*
41 * ┌───┬───┬───┬───┐
42 * │TG1│ / │ * │ - │
43 * ┌───┬───┬───┐───┤
44 * │Hom│ ↑ │PgU│ │
45 * ├───┼───┼───┤ + │
46 * │ ← │ │ → │ │
47 * ├───┼───┼───┤───┤
48 * │End│ ↓ │PgD│ │
49 * ├───┴───┼───┤Ent│
50 * │Insert │Del│ │
51 * └───────┴───┘───┘
52 */
53 [1] = LAYOUT_numpad_5x4(
54 _______, _______, _______, _______,
55 KC_HOME, KC_UP, KC_PGUP,
56 KC_LEFT, XXXXXXX, KC_RGHT, _______,
57 KC_END, KC_DOWN, KC_PGDN,
58 KC_INS, KC_DEL, _______
59 )
60}; \ No newline at end of file
diff --git a/keyboards/mountainblocks/mb17/keymaps/default/readme.md b/keyboards/mountainblocks/mb17/keymaps/default/readme.md
new file mode 100644
index 000000000..fb963c639
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for mb17
diff --git a/keyboards/mountainblocks/mb17/keymaps/via/keymap.c b/keyboards/mountainblocks/mb17/keymaps/via/keymap.c
new file mode 100644
index 000000000..5cee19cb2
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/keymaps/via/keymap.c
@@ -0,0 +1,76 @@
1/* Copyright 2020 mechmerlin
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 /*
20 * ┌───┬───┬───┬───┐
21 * │TG1│ / │ * │ - │
22 * ├───┼───┼───┼───┤
23 * │ 7 │ 8 │ 9 │ │
24 * ├───┼───┼───┤ + │
25 * │ 4 │ 5 │ 6 │ │
26 * ├───┼───┼───┼───┤
27 * │ 1 │ 2 │ 3 │ │
28 * ├───┴───┼───┤Ent│
29 * │ 0 │ . │ │
30 * └───────┴───┴───┘
31 */
32 [0] = LAYOUT_numpad_5x4(
33 TG(1), KC_PSLS, KC_PAST, KC_PMNS,
34 KC_P7, KC_P8, KC_P9,
35 KC_P4, KC_P5, KC_P6, KC_PPLS,
36 KC_P1, KC_P2, KC_P3,
37 KC_P0, KC_PDOT, KC_PENT
38 ),
39
40 /*
41 * ┌───┬───┬───┬───┐
42 * │TG1│ / │ * │ - │
43 * ┌───┬───┬───┐───┤
44 * │Hom│ ↑ │PgU│ │
45 * ├───┼───┼───┤ + │
46 * │ ← │ │ → │ │
47 * ├───┼───┼───┤───┤
48 * │End│ ↓ │PgD│ │
49 * ├───┴───┼───┤Ent│
50 * │Insert │Del│ │
51 * └───────┴───┘───┘
52 */
53 [1] = LAYOUT_numpad_5x4(
54 _______, _______, _______, _______,
55 KC_HOME, KC_UP, KC_PGUP,
56 KC_LEFT, XXXXXXX, KC_RGHT, _______,
57 KC_END, KC_DOWN, KC_PGDN,
58 KC_INS, KC_DEL, _______
59 ),
60
61 [2] = LAYOUT_numpad_5x4(
62 _______, _______, _______, _______,
63 _______, _______, _______,
64 _______, _______, _______, _______,
65 _______, _______, _______,
66 _______, _______, _______
67 ),
68
69 [3] = LAYOUT_numpad_5x4(
70 _______, _______, _______, _______,
71 _______, _______, _______,
72 _______, _______, _______, _______,
73 _______, _______, _______,
74 _______, _______, _______
75 )
76}; \ No newline at end of file
diff --git a/keyboards/mountainblocks/mb17/keymaps/via/rules.mk b/keyboards/mountainblocks/mb17/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/mountainblocks/mb17/mb17.c b/keyboards/mountainblocks/mb17/mb17.c
new file mode 100644
index 000000000..abc6183cb
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/mb17.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 mechmerlin
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 "mb17.h"
diff --git a/keyboards/mountainblocks/mb17/mb17.h b/keyboards/mountainblocks/mb17/mb17.h
new file mode 100644
index 000000000..dbfb68a93
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/mb17.h
@@ -0,0 +1,35 @@
1/* Copyright 2020 mechmerlin
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#define ___ KC_NO
22
23#define LAYOUT_numpad_5x4( \
24 k00, k01, k02, k03, \
25 k10, k11, k12, \
26 k20, k21, k22, k23, \
27 k30, k31, k32, \
28 k41, k42, k43 \
29){ \
30 { k00, k01, k02, k03 }, \
31 { k10, k11, k12, ___ }, \
32 { k20, k21, k22, k23 }, \
33 { k30, k31, k32, ___ }, \
34 { ___, k41, k42, k43 } \
35}
diff --git a/keyboards/mountainblocks/mb17/readme.md b/keyboards/mountainblocks/mb17/readme.md
new file mode 100644
index 000000000..c1dfd2b88
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/readme.md
@@ -0,0 +1,13 @@
1# MB17
2
3A single layout sandwich numpad.
4
5* Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin)
6* Hardware Supported: MB17
7* Hardware Availability: TBD
8
9Make example for this keyboard (after setting up your build environment):
10
11 make mountainblocks/mb17:default
12
13See 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/mountainblocks/mb17/rules.mk b/keyboards/mountainblocks/mb17/rules.mk
new file mode 100644
index 000000000..0bdce9565
--- /dev/null
+++ b/keyboards/mountainblocks/mb17/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 = caterina
13
14# Build Options
15# change yes to no to disable
16#
17BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
18MOUSEKEY_ENABLE = yes # Mouse keys
19EXTRAKEY_ENABLE = yes # Audio control and System control
20CONSOLE_ENABLE = yes # Console for debug
21COMMAND_ENABLE = yes # Commands for debug and configuration
22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
25NKRO_ENABLE = no # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
27RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
28MIDI_ENABLE = no # MIDI support
29BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
30AUDIO_ENABLE = no # Audio output on port C6
31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
32HD44780_ENABLE = no # Enable support for HD44780 based LCDs