diff options
Diffstat (limited to 'keyboards/zj68')
| -rw-r--r-- | keyboards/zj68/config.h | 64 | ||||
| -rw-r--r-- | keyboards/zj68/info.json | 86 | ||||
| -rw-r--r-- | keyboards/zj68/keymaps/default/keymap.c | 35 | ||||
| -rw-r--r-- | keyboards/zj68/keymaps/default/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/zj68/keymaps/splitbs/keymap.c | 34 | ||||
| -rw-r--r-- | keyboards/zj68/keymaps/splitbs/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/zj68/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/zj68/rules.mk | 63 | ||||
| -rw-r--r-- | keyboards/zj68/zj68.c | 24 | ||||
| -rw-r--r-- | keyboards/zj68/zj68.h | 60 |
10 files changed, 387 insertions, 0 deletions
diff --git a/keyboards/zj68/config.h b/keyboards/zj68/config.h new file mode 100644 index 000000000..59dcfc666 --- /dev/null +++ b/keyboards/zj68/config.h | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Collin Diekvoss <cdiekvoss@gmail.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 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0xFEED | ||
| 24 | #define PRODUCT_ID 0x6060 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Drop | ||
| 27 | #define PRODUCT ZJ68 | ||
| 28 | #define DESCRIPTION QMK ZJ68 | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 5 | ||
| 32 | #define MATRIX_COLS 15 | ||
| 33 | |||
| 34 | /* key matrix pins */ | ||
| 35 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 } | ||
| 36 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4, F7, F6, F5, F4, F1, F0 } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | /* COL2ROW or ROW2COL */ | ||
| 40 | #define DIODE_DIRECTION ROW2COL | ||
| 41 | |||
| 42 | /* number of backlight levels */ | ||
| 43 | #define BACKLIGHT_PIN B6 | ||
| 44 | #ifdef BACKLIGHT_PIN | ||
| 45 | #define BACKLIGHT_LEVELS 5 | ||
| 46 | #endif | ||
| 47 | |||
| 48 | /* Set 0 if debouncing isn't needed */ | ||
| 49 | #define DEBOUNCE 5 | ||
| 50 | |||
| 51 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 52 | #define LOCKING_SUPPORT_ENABLE | ||
| 53 | |||
| 54 | /* Locking resynchronize hack */ | ||
| 55 | #define LOCKING_RESYNC_ENABLE | ||
| 56 | |||
| 57 | #define RGB_DI_PIN E2 | ||
| 58 | #ifdef RGB_DI_PIN | ||
| 59 | #define RGBLIGHT_ANIMATIONS | ||
| 60 | #define RGBLED_NUM 14 | ||
| 61 | #define RGBLIGHT_HUE_STEP 8 | ||
| 62 | #define RGBLIGHT_SAT_STEP 8 | ||
| 63 | #define RGBLIGHT_VAL_STEP 8 | ||
| 64 | #endif | ||
diff --git a/keyboards/zj68/info.json b/keyboards/zj68/info.json new file mode 100644 index 000000000..f93963936 --- /dev/null +++ b/keyboards/zj68/info.json | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "ZJ68", | ||
| 3 | "maintainer": "qmk", | ||
| 4 | "width": 16, | ||
| 5 | "height": 5, | ||
| 6 | "layouts": { | ||
| 7 | "LAYOUT_all": { | ||
| 8 | "layout": [ | ||
| 9 | { "label": "~", "x": 0, "y": 0 }, | ||
| 10 | { "label": "!", "x": 1, "y": 0 }, | ||
| 11 | { "label": "@", "x": 2, "y": 0 }, | ||
| 12 | { "label": "#", "x": 3, "y": 0 }, | ||
| 13 | { "label": "$", "x": 4, "y": 0 }, | ||
| 14 | { "label": "%", "x": 5, "y": 0 }, | ||
| 15 | { "label": "^", "x": 6, "y": 0 }, | ||
| 16 | { "label": "&", "x": 7, "y": 0 }, | ||
| 17 | { "label": "*", "x": 8, "y": 0 }, | ||
| 18 | { "label": "(", "x": 9, "y": 0 }, | ||
| 19 | { "label": ")", "x": 10, "y": 0 }, | ||
| 20 | { "label": "_", "x": 11, "y": 0 }, | ||
| 21 | { "label": "+", "x": 12, "y": 0 }, | ||
| 22 | { "x": 13, "y": 0 }, | ||
| 23 | { "x": 14, "y": 0 }, | ||
| 24 | { "x": 15, "y": 0 }, | ||
| 25 | |||
| 26 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 27 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 28 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 29 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 30 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 31 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 32 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 33 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 34 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 35 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 36 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 37 | { "label": "{", "x": 11.5, "y": 1 }, | ||
| 38 | { "label": "}", "x": 12.5, "y": 1 }, | ||
| 39 | { "label": "|", "x": 13.5, "y": 1, "w": 1.5 }, | ||
| 40 | { "x": 15, "y": 1 }, | ||
| 41 | |||
| 42 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 43 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 44 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 45 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 46 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 47 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 48 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 49 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 50 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 51 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 52 | { "label": ":", "x": 10.75, "y": 2 }, | ||
| 53 | { "label": "\"", "x": 11.75, "y": 2 }, | ||
| 54 | { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
| 55 | { "x": 15, "y": 2 }, | ||
| 56 | |||
| 57 | { "label": "Shift", "x": 0, "y": 3, "w": 1.25 }, | ||
| 58 | { "x": 1.25, "y": 3 }, | ||
| 59 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 60 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 61 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 62 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 63 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 64 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 65 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 66 | { "label": "<", "x": 9.25, "y": 3 }, | ||
| 67 | { "label": ">", "x": 10.25, "y": 3 }, | ||
| 68 | { "label": "?", "x": 11.25, "y": 3 }, | ||
| 69 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 70 | { "x": 14, "y": 3 }, | ||
| 71 | { "x": 15, "y": 3 }, | ||
| 72 | |||
| 73 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 74 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 75 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 76 | { "x": 3.75, "y": 4, "w": 6.25 }, | ||
| 77 | { "label": "Alt", "x": 10, "y": 4 }, | ||
| 78 | { "label": "Win", "x": 11, "y": 4 }, | ||
| 79 | { "x": 12, "y": 4 }, | ||
| 80 | { "x": 13, "y": 4 }, | ||
| 81 | { "x": 14, "y": 4 }, | ||
| 82 | { "x": 15, "y": 4 } | ||
| 83 | ] | ||
| 84 | } | ||
| 85 | } | ||
| 86 | } | ||
diff --git a/keyboards/zj68/keymaps/default/keymap.c b/keyboards/zj68/keymaps/default/keymap.c new file mode 100644 index 000000000..05e0776db --- /dev/null +++ b/keyboards/zj68/keymaps/default/keymap.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2019 Collin Diekvoss <cdiekvoss@gmail.com> | ||
| 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 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | |||
| 20 | LAYOUT_all( | ||
| 21 | KC_ESC, 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_NO, KC_BSPC, KC_DEL, | ||
| 22 | KC_TAB, 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_BSLS, KC_PGUP, | ||
| 23 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | ||
| 24 | KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, MO(1), | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | |||
| 28 | LAYOUT_all( | ||
| 29 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, RESET, KC_PSCR, | ||
| 30 | RGB_TOG, _______, KC_UP, _______, RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, | ||
| 31 | BL_TOGG, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, KC_END, | ||
| 32 | _______, _______, _______, BL_DEC, BL_INC, BL_STEP, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 34 | ), | ||
| 35 | }; | ||
diff --git a/keyboards/zj68/keymaps/default/readme.md b/keyboards/zj68/keymaps/default/readme.md new file mode 100644 index 000000000..3522fe022 --- /dev/null +++ b/keyboards/zj68/keymaps/default/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # ZJ68 Default layout | ||
| 2 | |||
| 3 | This is the default layout from the json file provided on Drop, that was intended to be used on kbdfirmware, with an added soft reset on fn(backspace). \ No newline at end of file | ||
diff --git a/keyboards/zj68/keymaps/splitbs/keymap.c b/keyboards/zj68/keymaps/splitbs/keymap.c new file mode 100644 index 000000000..6403c0353 --- /dev/null +++ b/keyboards/zj68/keymaps/splitbs/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2019 Collin Diekvoss <cdiekvoss@gmail.com> | ||
| 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 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | |||
| 20 | LAYOUT_65_ansi_split_bs( | ||
| 21 | KC_ESC, 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_BSLS, KC_GRV, KC_INS, | ||
| 22 | KC_TAB, 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, KC_DEL, | ||
| 23 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, | ||
| 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, KC_UP, KC_PGDN, | ||
| 25 | MO(1), KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | LAYOUT_65_ansi_split_bs( | ||
| 28 | RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, | ||
| 29 | KC_CAPS, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, KC_VOLD, KC_VOLU, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_END, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | }; | ||
diff --git a/keyboards/zj68/keymaps/splitbs/readme.md b/keyboards/zj68/keymaps/splitbs/readme.md new file mode 100644 index 000000000..9047475ee --- /dev/null +++ b/keyboards/zj68/keymaps/splitbs/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # ZJ68 W/ Split Backspace | ||
| 2 | |||
| 3 | The plate that comes with the kit from Drop only allows one layout, but the pcb supports having a split backspace, so by widening the plate where the stabilizers are meant to go, you can fit the two switches in, if you want to go back to a single backspace later, you can still use pcb mount stabilizers. \ No newline at end of file | ||
diff --git a/keyboards/zj68/readme.md b/keyboards/zj68/readme.md new file mode 100644 index 000000000..c889888c3 --- /dev/null +++ b/keyboards/zj68/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # ZJ68 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 65% keyboard kit sold through Drop. | ||
| 6 | |||
| 7 | Keyboard Maintainer: QMK Community | ||
| 8 | Hardware Supported: ZJ68 PCB | ||
| 9 | Hardware Availability: [Drop](https://drop.com/buy/zj68-68-key-mechanical-keyboard-kit?mode=guest_open) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make zj68:default | ||
| 14 | |||
| 15 | 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/zj68/rules.mk b/keyboards/zj68/rules.mk new file mode 100644 index 000000000..79860ed7a --- /dev/null +++ b/keyboards/zj68/rules.mk | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency. | ||
| 5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 8 | # automatically to create a 32-bit value in your source code. | ||
| 9 | # | ||
| 10 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 12 | # does not *change* the processor frequency - it should merely be updated to | ||
| 13 | # reflect the processor speed set externally so that the code can use accurate | ||
| 14 | # software delays. | ||
| 15 | F_CPU = 16000000 | ||
| 16 | |||
| 17 | # | ||
| 18 | # LUFA specific | ||
| 19 | # | ||
| 20 | # Target architecture (see library "Board Types" documentation). | ||
| 21 | ARCH = AVR8 | ||
| 22 | |||
| 23 | # Input clock frequency. | ||
| 24 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 25 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 26 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 27 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 28 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 29 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 30 | # source code. | ||
| 31 | # | ||
| 32 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 33 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 34 | F_USB = $(F_CPU) | ||
| 35 | |||
| 36 | # Interrupt driven control endpoint task(+60) | ||
| 37 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 38 | |||
| 39 | # Bootloader selection | ||
| 40 | # Teensy halfkay | ||
| 41 | # Pro Micro caterina | ||
| 42 | # Atmel DFU atmel-dfu | ||
| 43 | # LUFA DFU lufa-dfu | ||
| 44 | # QMK DFU qmk-dfu | ||
| 45 | # atmega32a bootloadHID | ||
| 46 | BOOTLOADER = atmel-dfu | ||
| 47 | |||
| 48 | # Build Options | ||
| 49 | # comment out to disable the options. | ||
| 50 | # | ||
| 51 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 52 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 53 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 54 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 55 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 56 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 57 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 58 | AUDIO_ENABLE = no | ||
| 59 | |||
| 60 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 61 | RGBLIGHT_ENABLE = no | ||
| 62 | |||
| 63 | LAYOUTS = 65_ansi | ||
diff --git a/keyboards/zj68/zj68.c b/keyboards/zj68/zj68.c new file mode 100644 index 000000000..960c94303 --- /dev/null +++ b/keyboards/zj68/zj68.c | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright 2019 Collin Diekvoss <cdiekvoss@gmail.com> | ||
| 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 "zj68.h" | ||
| 17 | |||
| 18 | void matrix_init_kb(void) { | ||
| 19 | matrix_init_user(); | ||
| 20 | } | ||
| 21 | |||
| 22 | void matrix_scan_kb(void) { | ||
| 23 | matrix_scan_user(); | ||
| 24 | } | ||
diff --git a/keyboards/zj68/zj68.h b/keyboards/zj68/zj68.h new file mode 100644 index 000000000..5eaae26ad --- /dev/null +++ b/keyboards/zj68/zj68.h | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | /* Copyright 2019 Collin Diekvoss <cdiekvoss@gmail.com> | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | #define LAYOUT_65_ansi( \ | ||
| 21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0E, K4E, \ | ||
| 22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, K1E, \ | ||
| 23 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K1D, K2E, \ | ||
| 24 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 25 | K40, K41, K42, K46, K48, K49, K4A, K4B, K4C, K4D \ | ||
| 26 | ) { \ | ||
| 27 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, KC_NO, K0E }, \ | ||
| 28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 29 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \ | ||
| 30 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 31 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, K48, K49, K4A, K4B, K4C, K4D, K4E } \ | ||
| 32 | } | ||
| 33 | |||
| 34 | #define LAYOUT_65_ansi_split_bs( \ | ||
| 35 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K4E, \ | ||
| 36 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, K1E, \ | ||
| 37 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K1D, K2E, \ | ||
| 38 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 39 | K40, K41, K42, K46, K48, K49, K4A, K4B, K4C, K4D \ | ||
| 40 | ) { \ | ||
| 41 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 42 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 43 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \ | ||
| 44 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 45 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, K48, K49, K4A, K4B, K4C, K4D, K4E } \ | ||
| 46 | } | ||
| 47 | |||
| 48 | #define LAYOUT_all( \ | ||
| 49 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K4E, \ | ||
| 50 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, K1E, \ | ||
| 51 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K1D, K2E, \ | ||
| 52 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 53 | K40, K41, K42, K46, K48, K49, K4A, K4B, K4C, K4D \ | ||
| 54 | ) { \ | ||
| 55 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 56 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 57 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \ | ||
| 58 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 59 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, K48, K49, K4A, K4B, K4C, K4D, K4E } \ | ||
| 60 | } | ||
