diff options
| author | Matthew Dias <matthewdias@me.com> | 2021-04-24 20:02:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 11:02:00 +1000 |
| commit | 2a45d99059c84e37da4f16a07b324adbe30ddebc (patch) | |
| tree | b94e73878f7e86ea7a0dec585be82df92f87469a /keyboards/m3n3van | |
| parent | 06f8cb1b8a1f891d7d3b00a41a73ff2293115479 (diff) | |
| download | qmk_firmware-2a45d99059c84e37da4f16a07b324adbe30ddebc.tar.gz qmk_firmware-2a45d99059c84e37da4f16a07b324adbe30ddebc.zip | |
Add m3n3van rev2 (#12405)
* Add m3n3van rev2
* Add via support
Diffstat (limited to 'keyboards/m3n3van')
| -rw-r--r-- | keyboards/m3n3van/config.h | 65 | ||||
| -rw-r--r-- | keyboards/m3n3van/info.json | 57 | ||||
| -rw-r--r-- | keyboards/m3n3van/keymaps/default/keymap.json | 25 | ||||
| -rw-r--r-- | keyboards/m3n3van/keymaps/matthewdias/keymap.c | 51 | ||||
| -rw-r--r-- | keyboards/m3n3van/keymaps/via/keymap.c | 58 | ||||
| -rw-r--r-- | keyboards/m3n3van/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/m3n3van/m3n3van.c | 18 | ||||
| -rw-r--r-- | keyboards/m3n3van/m3n3van.h | 48 | ||||
| -rw-r--r-- | keyboards/m3n3van/readme.md | 21 | ||||
| -rw-r--r-- | keyboards/m3n3van/rules.mk | 23 |
10 files changed, 367 insertions, 0 deletions
diff --git a/keyboards/m3n3van/config.h b/keyboards/m3n3van/config.h new file mode 100644 index 000000000..15f62cecf --- /dev/null +++ b/keyboards/m3n3van/config.h | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along 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 0x6D64 | ||
| 25 | #define PRODUCT_ID 0x2323 | ||
| 26 | #define DEVICE_VER 0x0002 | ||
| 27 | #define MANUFACTURER Matthew Dias | ||
| 28 | #define PRODUCT m3n3van | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 4 | ||
| 32 | #define MATRIX_COLS 13 | ||
| 33 | |||
| 34 | /* m3n3van PCB default pin-out */ | ||
| 35 | #define MATRIX_ROW_PINS { B5, B6, C6, C7 } | ||
| 36 | #define MATRIX_COL_PINS { F4, F5, F6, F1, F7, F0, E6, D3, D0, D1, D2, D4, D6 } | ||
| 37 | #define ENCODERS_PAD_A { B4 } | ||
| 38 | #define ENCODERS_PAD_B { D7 } | ||
| 39 | #define UNUSED_PINS { B0, B1, B2, B3, B7, D5 } | ||
| 40 | |||
| 41 | /* COL2ROW or ROW2COL */ | ||
| 42 | #define DIODE_DIRECTION COL2ROW | ||
| 43 | |||
| 44 | /* Set 0 if debouncing isn't needed */ | ||
| 45 | #define DEBOUNCE 5 | ||
| 46 | |||
| 47 | /* | ||
| 48 | * Feature disable options | ||
| 49 | * These options are also useful to firmware size reduction. | ||
| 50 | */ | ||
| 51 | |||
| 52 | /* disable debug print */ | ||
| 53 | //#define NO_DEBUG | ||
| 54 | |||
| 55 | /* disable print */ | ||
| 56 | //#define NO_PRINT | ||
| 57 | |||
| 58 | /* disable action features */ | ||
| 59 | //#define NO_ACTION_LAYER | ||
| 60 | //#define NO_ACTION_TAPPING | ||
| 61 | //#define NO_ACTION_ONESHOT | ||
| 62 | |||
| 63 | /* disable these deprecated features by default */ | ||
| 64 | #define NO_ACTION_MACRO | ||
| 65 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/m3n3van/info.json b/keyboards/m3n3van/info.json new file mode 100644 index 000000000..b9c5a89a8 --- /dev/null +++ b/keyboards/m3n3van/info.json | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "m3n3van", | ||
| 3 | "url": "https://github.com/matthewdias/m3n3van/tree/main/rev2", | ||
| 4 | "maintainer": "matthewdias", | ||
| 5 | "width": 12.75, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 11 | { "label": "Q", "x": 1, "y": 0 }, | ||
| 12 | { "label": "W", "x": 2, "y": 0 }, | ||
| 13 | { "label": "E", "x": 3, "y": 0 }, | ||
| 14 | { "label": "R", "x": 4, "y": 0 }, | ||
| 15 | { "label": "T", "x": 5, "y": 0 }, | ||
| 16 | { "label": "Y", "x": 6, "y": 0 }, | ||
| 17 | { "label": "U", "x": 7, "y": 0 }, | ||
| 18 | { "label": "I", "x": 8, "y": 0 }, | ||
| 19 | { "label": "O", "x": 9, "y": 0 }, | ||
| 20 | { "label": "P", "x": 10, "y": 0 }, | ||
| 21 | { "label": "Backspace", "x": 11, "y": 0, "w": 1.75 }, | ||
| 22 | { "label": "Tab", "x": 0, "y": 1, "w": 1.25 }, | ||
| 23 | { "label": "A", "x": 1.25, "y": 1 }, | ||
| 24 | { "label": "S", "x": 2.25, "y": 1 }, | ||
| 25 | { "label": "D", "x": 3.25, "y": 1 }, | ||
| 26 | { "label": "F", "x": 4.25, "y": 1 }, | ||
| 27 | { "label": "G", "x": 5.25, "y": 1 }, | ||
| 28 | { "label": "H", "x": 6.25, "y": 1 }, | ||
| 29 | { "label": "J", "x": 7.25, "y": 1 }, | ||
| 30 | { "label": "K", "x": 8.25, "y": 1 }, | ||
| 31 | { "label": "L", "x": 9.25, "y": 1 }, | ||
| 32 | { "label": ";", "x": 10.25, "y": 1 }, | ||
| 33 | { "label": "Enter", "x": 11.25, "y": 1, "w": 1.5 }, | ||
| 34 | { "label": "Shift", "x": 0, "y": 2, "w": 1.75 }, | ||
| 35 | { "label": "Z", "x": 1.75, "y": 2 }, | ||
| 36 | { "label": "X", "x": 2.75, "y": 2 }, | ||
| 37 | { "label": "C", "x": 3.75, "y": 2 }, | ||
| 38 | { "label": "V", "x": 4.75, "y": 2 }, | ||
| 39 | { "label": "B", "x": 5.75, "y": 2 }, | ||
| 40 | { "label": "N", "x": 6.75, "y": 2 }, | ||
| 41 | { "label": "M", "x": 7.75, "y": 2 }, | ||
| 42 | { "label": "<", "x": 8.75, "y": 2 }, | ||
| 43 | { "label": ">", "x": 9.75, "y": 2 }, | ||
| 44 | { "label": "/", "x": 10.75, "y": 2 }, | ||
| 45 | { "label": "Shift", "x": 11.75, "y": 2 }, | ||
| 46 | { "label": "Ctrl", "x": 0, "y": 3 }, | ||
| 47 | { "label": "Alt", "x": 1, "y": 3, "w": 1.25 }, | ||
| 48 | { "label": "Meta", "x": 2.25, "y": 3 }, | ||
| 49 | { "x": 3.25, "y": 3, "w": 3 }, | ||
| 50 | { "x": 6.25, "y": 3, "w": 3 }, | ||
| 51 | { "label": "Meta", "x": 9.25, "y": 3, "w": 1.25 }, | ||
| 52 | { "label": "Alt", "x": 10.5, "y": 3 }, | ||
| 53 | { "label": "Ctrl", "x": 11.5, "y": 3, "w": 1.25 } | ||
| 54 | ] | ||
| 55 | } | ||
| 56 | } | ||
| 57 | } | ||
diff --git a/keyboards/m3n3van/keymaps/default/keymap.json b/keyboards/m3n3van/keymaps/default/keymap.json new file mode 100644 index 000000000..bb8c7fbb8 --- /dev/null +++ b/keyboards/m3n3van/keymaps/default/keymap.json | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | { | ||
| 2 | "keyboard": "m3n3van", | ||
| 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_BSPC", | ||
| 8 | "KC_TAB", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN", "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_LCTL", "KC_LGUI", "KC_LALT", "LT(2, KC_SPC)", "LT(1, KC_SPC)", "KC_RALT", "KC_RGUI", "KC_RCTL" | ||
| 11 | ], | ||
| 12 | [ | ||
| 13 | "KC_GRV", "KC_MPRV", "KC_MPLY", "KC_MNXT", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_UP", "KC_LBRC", "KC_RBRC", "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_QUPT", | ||
| 15 | "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_MINS", "KC_EQL", "KC_SLSH", "KC_TRNS", | ||
| 16 | "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS" | ||
| 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_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", | ||
| 21 | "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_BSLS", "KC_TRNS", | ||
| 22 | "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS" | ||
| 23 | ] | ||
| 24 | ] | ||
| 25 | } | ||
diff --git a/keyboards/m3n3van/keymaps/matthewdias/keymap.c b/keyboards/m3n3van/keymaps/matthewdias/keymap.c new file mode 100644 index 000000000..83d7265b0 --- /dev/null +++ b/keyboards/m3n3van/keymaps/matthewdias/keymap.c | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_encoder( \ | ||
| 22 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_MUTE, \ | ||
| 23 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, \ | ||
| 24 | KC_RSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, \ | ||
| 25 | KC_LCTL, KC_LALT, KC_LGUI, LT(2, KC_SPC), LT(1, KC_SPC), KC_RGUI, KC_RALT, KC_RCTL \ | ||
| 26 | ), | ||
| 27 | |||
| 28 | [1] = LAYOUT_encoder( \ | ||
| 29 | KC_GRV, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_LBRC, KC_RBRC, KC_TRNS, KC_TRNS, \ | ||
| 30 | KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_QUOT, \ | ||
| 31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_SLSH, KC_TRNS, \ | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ | ||
| 33 | ), | ||
| 34 | |||
| 35 | [2] = LAYOUT_encoder( \ | ||
| 36 | KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, KC_TRNS, \ | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSLS, KC_TRNS, \ | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ | ||
| 40 | ) | ||
| 41 | }; | ||
| 42 | |||
| 43 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 44 | if (index == 0) { | ||
| 45 | if (clockwise) { | ||
| 46 | tap_code(KC_VOLU); | ||
| 47 | } else { | ||
| 48 | tap_code(KC_VOLD); | ||
| 49 | } | ||
| 50 | } | ||
| 51 | } | ||
diff --git a/keyboards/m3n3van/keymaps/via/keymap.c b/keyboards/m3n3van/keymaps/via/keymap.c new file mode 100644 index 000000000..2ef9af90e --- /dev/null +++ b/keyboards/m3n3van/keymaps/via/keymap.c | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_encoder( \ | ||
| 22 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_MUTE, \ | ||
| 23 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, \ | ||
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \ | ||
| 25 | KC_LCTL, KC_LALT, KC_LGUI, LT(2, KC_SPC), LT(1, KC_SPC), KC_RGUI, KC_RALT, KC_RCTL \ | ||
| 26 | ), | ||
| 27 | |||
| 28 | [1] = LAYOUT_encoder( \ | ||
| 29 | KC_GRV, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_LBRC, KC_RBRC, KC_TRNS, KC_TRNS, \ | ||
| 30 | KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_QUOT, \ | ||
| 31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_SLSH, KC_TRNS, \ | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ | ||
| 33 | ), | ||
| 34 | |||
| 35 | [2] = LAYOUT_encoder( \ | ||
| 36 | KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, KC_TRNS, \ | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSLS, KC_TRNS, \ | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ | ||
| 40 | ), | ||
| 41 | |||
| 42 | [3] = LAYOUT_encoder( \ | ||
| 43 | 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, \ | ||
| 44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSLS, KC_TRNS, \ | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ | ||
| 47 | ) | ||
| 48 | }; | ||
| 49 | |||
| 50 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 51 | if (index == 0) { | ||
| 52 | if (clockwise) { | ||
| 53 | tap_code(KC_VOLU); | ||
| 54 | } else { | ||
| 55 | tap_code(KC_VOLD); | ||
| 56 | } | ||
| 57 | } | ||
| 58 | } | ||
diff --git a/keyboards/m3n3van/keymaps/via/rules.mk b/keyboards/m3n3van/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/m3n3van/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/m3n3van/m3n3van.c b/keyboards/m3n3van/m3n3van.c new file mode 100644 index 000000000..5032a02c3 --- /dev/null +++ b/keyboards/m3n3van/m3n3van.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include "m3n3van.h" | ||
diff --git a/keyboards/m3n3van/m3n3van.h b/keyboards/m3n3van/m3n3van.h new file mode 100644 index 000000000..be9efe7e5 --- /dev/null +++ b/keyboards/m3n3van/m3n3van.h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "quantum.h" | ||
| 21 | |||
| 22 | #define XXX KC_NO | ||
| 23 | |||
| 24 | #define LAYOUT( \ | ||
| 25 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0C, \ | ||
| 26 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1C, \ | ||
| 27 | K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \ | ||
| 28 | K30, K31, K32, K34, K37, K39, K3B, K3C \ | ||
| 29 | ) \ | ||
| 30 | { \ | ||
| 31 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, XXX, K0C }, \ | ||
| 32 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, XXX, K1C }, \ | ||
| 33 | { K20, XXX, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C }, \ | ||
| 34 | { K30, K31, K32, XXX, K34, XXX, XXX, K37, XXX, K39, XXX, K3B, K3C } \ | ||
| 35 | } | ||
| 36 | |||
| 37 | #define LAYOUT_encoder( \ | ||
| 38 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, \ | ||
| 39 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1C, \ | ||
| 40 | K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \ | ||
| 41 | K30, K31, K32, K34, K37, K39, K3B, K3C \ | ||
| 42 | ) \ | ||
| 43 | { \ | ||
| 44 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C }, \ | ||
| 45 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, XXX, K1C }, \ | ||
| 46 | { K20, XXX, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C }, \ | ||
| 47 | { K30, K31, K32, XXX, K34, XXX, XXX, K37, XXX, K39, XXX, K3B, K3C } \ | ||
| 48 | } | ||
diff --git a/keyboards/m3n3van/readme.md b/keyboards/m3n3van/readme.md new file mode 100644 index 000000000..66f9d0804 --- /dev/null +++ b/keyboards/m3n3van/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # m3n3van | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A minivan case compatible PCB with 2x3u split space. | ||
| 6 | |||
| 7 | - Keyboard Maintainer: matthewdias | ||
| 8 | - Hardware Supported: m3n3van rev2 PCB | ||
| 9 | - Hardware Availability: [GitHub](https://github.com/matthewdias/m3n3van/tree/main/rev2) | ||
| 10 | |||
| 11 | To reset the keyboard into bootloader mode, press the reset switch on the underside. | ||
| 12 | |||
| 13 | Make example for this keyboard (after setting up your build environment): | ||
| 14 | |||
| 15 | make m3n3van:default | ||
| 16 | |||
| 17 | Flashing 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 m3n3van:default:flash | ||
| 20 | |||
| 21 | See 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/m3n3van/rules.mk b/keyboards/m3n3van/rules.mk new file mode 100644 index 000000000..831de6dc5 --- /dev/null +++ b/keyboards/m3n3van/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_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 | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | ENCODER_ENABLE = yes | ||
