aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/majistic/config.h57
-rw-r--r--keyboards/majistic/info.json78
-rw-r--r--keyboards/majistic/keymaps/default/config.h17
-rw-r--r--keyboards/majistic/keymaps/default/keymap.c45
-rw-r--r--keyboards/majistic/keymaps/default/readme.md1
-rw-r--r--keyboards/majistic/majistic.c17
-rw-r--r--keyboards/majistic/majistic.h47
-rw-r--r--keyboards/majistic/readme.md15
-rw-r--r--keyboards/majistic/rules.mk24
9 files changed, 301 insertions, 0 deletions
diff --git a/keyboards/majistic/config.h b/keyboards/majistic/config.h
new file mode 100644
index 000000000..4ced5dd89
--- /dev/null
+++ b/keyboards/majistic/config.h
@@ -0,0 +1,57 @@
1
2/*
3Copyright 2020 yossiyossy
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED
25#define PRODUCT_ID 0x6E55
26#define DEVICE_VER 0x0001
27#define MANUFACTURER yossiyossy
28#define PRODUCT maJIStic
29
30/* key matrix size */
31#define MATRIX_ROWS 10
32#define MATRIX_COLS 8
33
34#define MATRIX_ROW_PINS { F6, F7, B1, B3, B2 }
35#define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5, F4, F5 } // F4, F5 is dummy
36#define MATRIX_ROW_PINS_RIGHT { D4, C6, D7, E6, B4 }
37#define MATRIX_COL_PINS_RIGHT { B6, B2, B3, B1, F7, F6, F5, F4 }
38
39/* COL2ROW, ROW2COL*/
40#define DIODE_DIRECTION COL2ROW
41
42/*
43 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
44 */
45#define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6
46
47/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
48#define DEBOUNCE 5
49
50/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
51#define LOCKING_SUPPORT_ENABLE
52/* Locking resynchronize hack */
53#define LOCKING_RESYNC_ENABLE
54
55/* disable these deprecated features by default */
56#define NO_ACTION_MACRO
57#define NO_ACTION_FUNCTION
diff --git a/keyboards/majistic/info.json b/keyboards/majistic/info.json
new file mode 100644
index 000000000..2ae926788
--- /dev/null
+++ b/keyboards/majistic/info.json
@@ -0,0 +1,78 @@
1{
2 "keyboard_name": "maJIStic",
3 "url": "https://github.com/yossiyossy/maJIStic",
4 "maintainer": "yossiyossy",
5 "width": 15.5,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"1", "x":0, "y":0, "w":1.5},
11 {"label":"2", "x":1.5, "y":0},
12 {"label":"3", "x":2.5, "y":0},
13 {"label":"4", "x":3.5, "y":0},
14 {"label":"5", "x":4.5, "y":0},
15 {"label":"6", "x":5.5, "y":0},
16 {"label":"7", "x":7.5, "y":0},
17 {"label":"8", "x":8.5, "y":0},
18 {"label":"9", "x":9.5, "y":0},
19 {"label":"0", "x":10.5, "y":0},
20 {"label":"-", "x":11.5, "y":0},
21 {"label":"^", "x":12.5, "y":0},
22 {"label":"\\", "x":13.5, "y":0},
23 {"label":"BS", "x":14.5, "y":0},
24 {"label":"Tab", "x":0, "y":1},
25 {"label":"Q", "x":1, "y":1},
26 {"label":"W", "x":2, "y":1},
27 {"label":"E", "x":3, "y":1},
28 {"label":"R", "x":4, "y":1},
29 {"label":"T", "x":5, "y":1},
30 {"label":"Y", "x":7, "y":1},
31 {"label":"U", "x":8, "y":1},
32 {"label":"I", "x":9, "y":1},
33 {"label":"O", "x":10, "y":1},
34 {"label":"P", "x":11, "y":1},
35 {"label":"@", "x":12, "y":1},
36 {"label":"[", "x":13, "y":1},
37 {"label":"Caps Lock", "x":0, "y":2, "w":1.25},
38 {"label":"A", "x":1.25, "y":2},
39 {"label":"S", "x":2.25, "y":2},
40 {"label":"D", "x":3.25, "y":2},
41 {"label":"F", "x":4.25, "y":2},
42 {"label":"G", "x":5.25, "y":2},
43 {"label":"H", "x":7.25, "y":2},
44 {"label":"J", "x":8.25, "y":2},
45 {"label":"K", "x":9.25, "y":2},
46 {"label":"L", "x":10.25, "y":2},
47 {"label":";", "x":11.25, "y":2},
48 {"label":":", "x":12.25, "y":2},
49 {"label":"]", "x":13.25, "y":2},
50 {"label":"Enter", "x":14.25, "y":1, "w":1.25, "h":2},
51 {"label":"Shift", "x":0, "y":3, "w":1.75},
52 {"label":"Z", "x":1.75, "y":3},
53 {"label":"X", "x":2.75, "y":3},
54 {"label":"C", "x":3.75, "y":3},
55 {"label":"V", "x":4.75, "y":3},
56 {"label":"B", "x":5.75, "y":3},
57 {"label":"N", "x":7.75, "y":3},
58 {"label":"M", "x":8.75, "y":3},
59 {"label":",", "x":9.75, "y":3},
60 {"label":".", "x":10.75, "y":3},
61 {"label":"/", "x":11.75, "y":3},
62 {"label":"up", "x":12.75, "y":3},
63 {"label":"Shift", "x":13.75, "y":3, "w":1.75},
64 {"label":"Ctrl", "x":0, "y":4},
65 {"label":"Alt", "x":1, "y":4},
66 {"label":"command", "x":2, "y":4, "w":1.25},
67 {"label":"EISU", "x":3.25, "y":4, "w":1.25},
68 {"label":"", "x":4.5, "y":4, "w":1.75},
69 {"label":"", "x":7.25, "y":4, "w":1.5},
70 {"label":"KANA", "x":8.75, "y":4, "w":1.5},
71 {"label":"command", "x":10.25, "y":4, "w":1.5},
72 {"label":"left", "x":11.75, "y":4},
73 {"label":"down", "x":12.75, "y":4},
74 {"label":"right", "x":13.75, "y":4}
75 ]
76 }
77 }
78}
diff --git a/keyboards/majistic/keymaps/default/config.h b/keyboards/majistic/keymaps/default/config.h
new file mode 100644
index 000000000..4db5715cb
--- /dev/null
+++ b/keyboards/majistic/keymaps/default/config.h
@@ -0,0 +1,17 @@
1/* Copyright 2020 yossiyossy
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
diff --git a/keyboards/majistic/keymaps/default/keymap.c b/keyboards/majistic/keymaps/default/keymap.c
new file mode 100644
index 000000000..e26a631d7
--- /dev/null
+++ b/keyboards/majistic/keymaps/default/keymap.c
@@ -0,0 +1,45 @@
1/* Copyright 2020 yossiyossy
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#include "keymap_jp.h"
18
19// Defines names for use in layer keycodes and the keymap
20enum layer_names {
21 _BASE,
22 _LOWER,
23};
24
25enum custom_keycodes {
26 L_SPC = SAFE_RANGE,
27};
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30 /* Base */
31 [_BASE] = LAYOUT(
32 JP_1, JP_2, JP_3, JP_4, JP_5, JP_6, JP_7, JP_8, JP_9, JP_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPC, \
33 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, \
34 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_SCLN, JP_COLN, JP_RBRC, KC_ENT , \
35 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, JP_COMM, JP_DOT, JP_SLSH, KC_UP, KC_RSFT, \
36 KC_LCTL, KC_LALT, KC_LGUI, KC_LANG2, LT(_LOWER, KC_SPC), LT(_LOWER, KC_SPC), KC_LANG1, KC_RGUI, KC_LEFT, KC_DOWN, KC_RIGHT \
37 ),
38 [_LOWER] = LAYOUT(
39 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, \
40 KC_ESC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, JP_UNDS, _______, _______, \
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BRMU, KC_VOLU, _______, \
43 _______, _______, _______, _______, _______, _______, _______, _______, KC_BRMD, KC_VOLD, _______ \
44 ),
45};
diff --git a/keyboards/majistic/keymaps/default/readme.md b/keyboards/majistic/keymaps/default/readme.md
new file mode 100644
index 000000000..65ee11cd7
--- /dev/null
+++ b/keyboards/majistic/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for maJIStic
diff --git a/keyboards/majistic/majistic.c b/keyboards/majistic/majistic.c
new file mode 100644
index 000000000..7ceba7cf2
--- /dev/null
+++ b/keyboards/majistic/majistic.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 yossiyossy
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 "majistic.h"
diff --git a/keyboards/majistic/majistic.h b/keyboards/majistic/majistic.h
new file mode 100644
index 000000000..77c4a4912
--- /dev/null
+++ b/keyboards/majistic/majistic.h
@@ -0,0 +1,47 @@
1/* Copyright 2020 yossiyossy
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 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29
30#define LAYOUT(\
31 l00, l01, l02, l03, l04, l05, r00, r01, r02, r03, r04, r05, r06, r07, \
32 l10, l11, l12, l13, l14, l15, r10, r11, r12, r13, r14, r15, r16, \
33 l20, l21, l22, l23, l24, l25, r20, r21, r22, r23, r24, r25, r26, r17, \
34 l30, l31, l32, l33, l34, l35, r30, r31, r32, r33, r34, r35, r36, \
35 l40, l41, l42, l43, l44, r40, r41, r42, r43, r44, r45 \
36) {\
37 { l00, l01, l02, l03, l04, l05, KC_NO, KC_NO }, \
38 { l10, l11, l12, l13, l14, l15, KC_NO, KC_NO }, \
39 { l20, l21, l22, l23, l24, l25, KC_NO, KC_NO}, \
40 { l30, l31, l32, l33, l34, l35, KC_NO, KC_NO}, \
41 { l40, l41, l42, l43, l44, KC_NO, KC_NO, KC_NO}, \
42 { r00, r01, r02, r03, r04, r05, r06, r07 }, \
43 { r10, r11, r12, r13, r14, r15, r16, r17 }, \
44 { r20, r21, r22, r23, r24, r25, r26, KC_NO }, \
45 { r30, r31, r32, r33, r34, r35, r36, KC_NO }, \
46 { r40, r41, r42, r43, r44, r45, KC_NO, KC_NO } \
47}
diff --git a/keyboards/majistic/readme.md b/keyboards/majistic/readme.md
new file mode 100644
index 000000000..05916af4e
--- /dev/null
+++ b/keyboards/majistic/readme.md
@@ -0,0 +1,15 @@
1# maJIStic
2
3![maJIStic](https://raw.githubusercontent.com/yossiyossy/maJIStic/master/images/main_image.jpg)
4
5maJIStic is a split, JIS, magic keyboard like, hot-swappable keybaord!
6
7* Keyboard Maintainer: [yossiyossy](https://github.com/yossiyossy)
8* Hardware Supported: [pcb](https://github.com/yossiyossy/maJIStic/tree/master/pcb), [case](https://github.com/yossiyossy/maJIStic/tree/master/case/dxf)
9* Hardware Availability: [booth](https://yossiyossy.booth.pm/items/2325429)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make majistic: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/majistic/rules.mk b/keyboards/majistic/rules.mk
new file mode 100644
index 000000000..2440fc903
--- /dev/null
+++ b/keyboards/majistic/rules.mk
@@ -0,0 +1,24 @@
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 = no # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = yes # Console for debug
14COMMAND_ENABLE = yes # 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 = no # 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
23
24SPLIT_KEYBOARD = yes