aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/minim/config.h63
-rw-r--r--keyboards/minim/info.json59
-rw-r--r--keyboards/minim/keymaps/default/keymap.json24
-rw-r--r--keyboards/minim/minim.c18
-rw-r--r--keyboards/minim/minim.h33
-rw-r--r--keyboards/minim/readme.md21
-rw-r--r--keyboards/minim/rules.mk22
7 files changed, 240 insertions, 0 deletions
diff --git a/keyboards/minim/config.h b/keyboards/minim/config.h
new file mode 100644
index 000000000..e13d2b798
--- /dev/null
+++ b/keyboards/minim/config.h
@@ -0,0 +1,63 @@
1/*
2Copyright 2020 Matthew Dias <matthewdias@me.com>
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
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED
25#define PRODUCT_ID 0xAAAA
26#define DEVICE_VER 0x0001
27#define MANUFACTURER Matthew Dias
28#define PRODUCT minim
29
30/* key matrix size */
31#define MATRIX_ROWS 4
32#define MATRIX_COLS 14
33
34/* minim PCB default pin-out */
35#define MATRIX_ROW_PINS { D6, D7, B4, B5 }
36#define MATRIX_COL_PINS { F4, F5, F6, F1, F7, F0, B0, D1, B1, D2, B2, D3, D5, B3 }
37#define UNUSED_PINS
38
39/* COL2ROW or ROW2COL */
40#define DIODE_DIRECTION COL2ROW
41
42/* Set 0 if debouncing isn't needed */
43#define DEBOUNCE 5
44
45/*
46 * Feature disable options
47 * These options are also useful to firmware size reduction.
48 */
49
50/* disable debug print */
51//#define NO_DEBUG
52
53/* disable print */
54//#define NO_PRINT
55
56/* disable action features */
57//#define NO_ACTION_LAYER
58//#define NO_ACTION_TAPPING
59//#define NO_ACTION_ONESHOT
60
61/* disable these deprecated features by default */
62#define NO_ACTION_MACRO
63#define NO_ACTION_FUNCTION
diff --git a/keyboards/minim/info.json b/keyboards/minim/info.json
new file mode 100644
index 000000000..a478ccfea
--- /dev/null
+++ b/keyboards/minim/info.json
@@ -0,0 +1,59 @@
1{
2 "keyboard_name": "minim",
3 "url": "https://github.com/matthewdias/minim",
4 "maintainer": "matthewdias",
5 "width": 14.5,
6 "height": 4,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 { "label": "Tab", "x": 0, "y": 0, "w": 1.25 },
11 { "label": "Q", "x": 1.25, "y": 0 },
12 { "label": "W", "x": 2.25, "y": 0 },
13 { "label": "E", "x": 3.25, "y": 0 },
14 { "label": "R", "x": 4.25, "y": 0 },
15 { "label": "T", "x": 5.25, "y": 0 },
16 { "label": "Y", "x": 6.25, "y": 0 },
17 { "label": "U", "x": 7.25, "y": 0 },
18 { "label": "I", "x": 8.25, "y": 0 },
19 { "label": "O", "x": 9.25, "y": 0 },
20 { "label": "P", "x": 10.25, "y": 0 },
21 { "label": "{", "x": 11.25, "y": 0 },
22 { "label": "}", "x": 12.25, "y": 0 },
23 { "label": "Back", "x": 13.25, "y": 0, "w": 1.25 },
24 { "label": "Ctrl", "x": 0, "y": 1, "w": 1.75 },
25 { "label": "A", "x": 1.75, "y": 1 },
26 { "label": "S", "x": 2.75, "y": 1 },
27 { "label": "D", "x": 3.75, "y": 1 },
28 { "label": "F", "x": 4.75, "y": 1 },
29 { "label": "G", "x": 5.75, "y": 1 },
30 { "label": "H", "x": 6.75, "y": 1 },
31 { "label": "J", "x": 7.75, "y": 1 },
32 { "label": "K", "x": 8.75, "y": 1 },
33 { "label": "L", "x": 9.75, "y": 1 },
34 { "label": ":", "x": 10.75, "y": 1 },
35 { "label": "\"", "x": 11.75, "y": 1 },
36 { "label": "Enter", "x": 12.75, "y": 1, "w": 1.75 },
37 { "label": "Shift", "x": 0, "y": 2, "w": 2.25 },
38 { "label": "Z", "x": 2.25, "y": 2 },
39 { "label": "X", "x": 3.25, "y": 2 },
40 { "label": "C", "x": 4.25, "y": 2 },
41 { "label": "V", "x": 5.25, "y": 2 },
42 { "label": "B", "x": 6.25, "y": 2 },
43 { "label": "N", "x": 7.25, "y": 2 },
44 { "label": "M", "x": 8.25, "y": 2 },
45 { "label": "<", "x": 9.25, "y": 2 },
46 { "label": ">", "x": 10.25, "y": 2 },
47 { "label": "?", "x": 11.25, "y": 2 },
48 { "label": "Shift", "x": 12.25, "y": 2, "w": 2.25 },
49 { "label": "Opt", "x": 1.5, "y": 3 },
50 { "label": "Cmd", "x": 2.5, "y": 3, "w": 1.25 },
51 { "label": "", "x": 3.75, "y": 3, "w": 2 },
52 { "label": "", "x": 5.75, "y": 3, "w": 3 },
53 { "label": "", "x": 8.75, "y": 3, "w": 2 },
54 { "label": "Cmd", "x": 10.75, "y": 3, "w": 1.25 },
55 { "label": "Opt", "x": 12, "y": 3 }
56 ]
57 }
58 }
59}
diff --git a/keyboards/minim/keymaps/default/keymap.json b/keyboards/minim/keymaps/default/keymap.json
new file mode 100644
index 000000000..bc7407e93
--- /dev/null
+++ b/keyboards/minim/keymaps/default/keymap.json
@@ -0,0 +1,24 @@
1{
2 "keyboard": "minim",
3 "keymap": "default",
4 "layout": "LAYOUT",
5 "layers": [
6 [
7 "KC_ESC", "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_BSPC",
8 "LCTL_T(KC_TAB)", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_QUOT", "KC_ENT",
9 "KC_LSFT", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_SLSH", "KC_RSFT",
10 "KC_LALT", "KC_LGUI", "MO(2)", "KC_SPC", "MO(1)", "KC_RGUI", "KC_RALT"
11 ],
12 [
13 "KC_GRV", "KC_MPRV", "KC_MPLY", "KC_MNXT", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_UP", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS",
14 "KC_TRNS", "KC_VOLD", "KC_VOLU", "KC_MUTE", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_LEFT", "KC_DOWN", "KC_RGHT", "KC_TRNS", "KC_TRNS", "KC_TRNS",
15 "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS",
16 "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_RALT"
17 ],
18 [
19 "KC_TRNS", "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_TRNS",
20 "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",
21 "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS",
22 "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_RALT"]
23 ]
24}
diff --git a/keyboards/minim/minim.c b/keyboards/minim/minim.c
new file mode 100644
index 000000000..aadb26fee
--- /dev/null
+++ b/keyboards/minim/minim.c
@@ -0,0 +1,18 @@
1/*
2Copyright 2020 Matthew Dias <matthewdias@me.com>
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#include "minim.h"
diff --git a/keyboards/minim/minim.h b/keyboards/minim/minim.h
new file mode 100644
index 000000000..7a732a8ab
--- /dev/null
+++ b/keyboards/minim/minim.h
@@ -0,0 +1,33 @@
1/*
2Copyright 2020 Matthew Dias <matthewdias@me.com>
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 "quantum.h"
21
22#define LAYOUT( \
23 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \
24 K10, K11, K12, K13, K14, K15, K16, K18, K19, K1A, K1B, K1C, K1D, \
25 K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \
26 K31, K32, K34, K37, K39, K3B, K3C \
27) \
28{ \
29 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
30 { K10, K11, K12, K13, K14, K15, K16, KC_NO, K18, K19, K1A, K1B, K1C, K1D }, \
31 { K20, KC_NO, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D }, \
32 { KC_NO, K31, K32, KC_NO, K34, KC_NO, KC_NO, K37, KC_NO, K39, KC_NO, K3B, K3C, KC_NO } \
33}
diff --git a/keyboards/minim/readme.md b/keyboards/minim/readme.md
new file mode 100644
index 000000000..95820c4db
--- /dev/null
+++ b/keyboards/minim/readme.md
@@ -0,0 +1,21 @@
1# minim
2
3![](https://raw.githubusercontent.com/matthewdias/minim/main/layout.png)
4
5A symmetrical 50% keyboard.
6
7* Keyboard Maintainer: matthewdias
8* Hardware Supported: minim PCB
9* Hardware Availability: [GitHub](https://github.com/matthewdias/minim)
10
11To reset the keyboard into bootloader mode, press the reset switch on the underside.
12
13Make example for this keyboard (after setting up your build environment):
14
15 make minim:default
16
17Flashing example for this keyboard ([using the command line](https://docs.qmk.fm/#/newbs_flashing?id=flash-your-keyboard-from-the-command-line)):
18
19 make minim:default:flash
20
21See 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/minim/rules.mk b/keyboards/minim/rules.mk
new file mode 100644
index 000000000..32981133b
--- /dev/null
+++ b/keyboards/minim/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output