diff options
| author | sithlord121 <sithlord121@yahoo.com.tw> | 2020-12-07 20:18:16 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-07 18:18:16 -0800 |
| commit | d354b1f0a432deea8b7a713279cc64572542bce0 (patch) | |
| tree | 5acc3cb2b1c821c96b62bb5c1c1c8e6f8b03b910 /keyboards/slz40 | |
| parent | 95022bc366caa7a05b8a91dfc7b16173d270b7b6 (diff) | |
| download | qmk_firmware-d354b1f0a432deea8b7a713279cc64572542bce0.tar.gz qmk_firmware-d354b1f0a432deea8b7a713279cc64572542bce0.zip | |
[Keyboard] New keyboard SLZ40 (#11088)
* New SLZ40 keyboard
new keyboard added
* Update readme.md
* Update info.json
* Delete slz40_default.hex
* Update keyboards/slz40/keymaps/default/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/slz40/keymaps/default/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update readme.md
* Update readme.md
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/slz40')
| -rw-r--r-- | keyboards/slz40/config.h | 146 | ||||
| -rw-r--r-- | keyboards/slz40/info.json | 76 | ||||
| -rw-r--r-- | keyboards/slz40/keymaps/default/keymap.c | 48 | ||||
| -rw-r--r-- | keyboards/slz40/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/slz40/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/slz40/rules.mk | 22 | ||||
| -rw-r--r-- | keyboards/slz40/slz40.c | 17 | ||||
| -rw-r--r-- | keyboards/slz40/slz40.h | 41 |
8 files changed, 370 insertions, 0 deletions
diff --git a/keyboards/slz40/config.h b/keyboards/slz40/config.h new file mode 100644 index 000000000..cc868e4c0 --- /dev/null +++ b/keyboards/slz40/config.h | |||
| @@ -0,0 +1,146 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 SithLord | ||
| 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 0x0000 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER SithLord | ||
| 27 | #define PRODUCT slz40 | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 31 | #define MATRIX_COLS 12 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { B4, B5, B3, B2, B6 } | ||
| 44 | #define MATRIX_COL_PINS { F4, D2, F5, D1, F6, D0, F7, D4, B1, C6, E6, D7 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | /* | ||
| 51 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 52 | */ | ||
| 53 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 54 | |||
| 55 | //#define BACKLIGHT_PIN B7 | ||
| 56 | //#define BACKLIGHT_LEVELS 3 | ||
| 57 | //#define BACKLIGHT_BREATHING | ||
| 58 | |||
| 59 | //#define RGB_DI_PIN E2 | ||
| 60 | //#ifdef RGB_DI_PIN | ||
| 61 | //# define RGBLED_NUM 16 | ||
| 62 | //# define RGBLIGHT_HUE_STEP 8 | ||
| 63 | //# define RGBLIGHT_SAT_STEP 8 | ||
| 64 | //# define RGBLIGHT_VAL_STEP 8 | ||
| 65 | //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 66 | //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 67 | /*== all animations enable ==*/ | ||
| 68 | //# define RGBLIGHT_ANIMATIONS | ||
| 69 | /*== or choose animations ==*/ | ||
| 70 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 71 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 72 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 73 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 74 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 75 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 76 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 77 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 78 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 79 | /*== customize breathing effect ==*/ | ||
| 80 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 81 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 82 | /*==== use exp() and sin() ====*/ | ||
| 83 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 84 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 85 | //#endif | ||
| 86 | |||
| 87 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 88 | #define DEBOUNCE 5 | ||
| 89 | |||
| 90 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 91 | //#define MATRIX_HAS_GHOST | ||
| 92 | |||
| 93 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 94 | #define LOCKING_SUPPORT_ENABLE | ||
| 95 | /* Locking resynchronize hack */ | ||
| 96 | #define LOCKING_RESYNC_ENABLE | ||
| 97 | |||
| 98 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 99 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 100 | */ | ||
| 101 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 102 | |||
| 103 | /* | ||
| 104 | * Force NKRO | ||
| 105 | * | ||
| 106 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 107 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 108 | * makefile for this to work.) | ||
| 109 | * | ||
| 110 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 111 | * until the next keyboard reset. | ||
| 112 | * | ||
| 113 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 114 | * fully operational during normal computer usage. | ||
| 115 | * | ||
| 116 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 117 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 118 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 119 | * power-up. | ||
| 120 | * | ||
| 121 | */ | ||
| 122 | //#define FORCE_NKRO | ||
| 123 | |||
| 124 | /* | ||
| 125 | * Feature disable options | ||
| 126 | * These options are also useful to firmware size reduction. | ||
| 127 | */ | ||
| 128 | |||
| 129 | /* disable debug print */ | ||
| 130 | //#define NO_DEBUG | ||
| 131 | |||
| 132 | /* disable print */ | ||
| 133 | //#define NO_PRINT | ||
| 134 | |||
| 135 | /* disable action features */ | ||
| 136 | //#define NO_ACTION_LAYER | ||
| 137 | //#define NO_ACTION_TAPPING | ||
| 138 | //#define NO_ACTION_ONESHOT | ||
| 139 | |||
| 140 | /* disable these deprecated features by default */ | ||
| 141 | #define NO_ACTION_MACRO | ||
| 142 | #define NO_ACTION_FUNCTION | ||
| 143 | |||
| 144 | /* Bootmagic Lite key configuration */ | ||
| 145 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 146 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/slz40/info.json b/keyboards/slz40/info.json new file mode 100644 index 000000000..2723453c4 --- /dev/null +++ b/keyboards/slz40/info.json | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "slz40", | ||
| 3 | "url": "https://github.com/sithlord121/slz40", | ||
| 4 | "maintainer": "SithLord", | ||
| 5 | "width": 13, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label": "1", "x": 0.5, "y": 0}, | ||
| 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": 6.5, "y": 0}, | ||
| 17 | {"label": "8", "x": 7.5, "y": 0}, | ||
| 18 | {"label": "9", "x": 8.5, "y": 0}, | ||
| 19 | {"label": "0", "x": 9.5, "y": 0}, | ||
| 20 | {"label": "-", "x": 10.5, "y": 0}, | ||
| 21 | |||
| 22 | {"label": "esc", "x": 0, "y": 1}, | ||
| 23 | {"label": "q", "x": 1, "y": 1}, | ||
| 24 | {"label": "w", "x": 2, "y": 1}, | ||
| 25 | {"label": "e", "x": 3, "y": 1}, | ||
| 26 | {"label": "r", "x": 4, "y": 1}, | ||
| 27 | {"label": "t", "x": 5, "y": 1}, | ||
| 28 | {"label": "y", "x": 6, "y": 1}, | ||
| 29 | {"label": "u", "x": 7, "y": 1}, | ||
| 30 | {"label": "i", "x": 8, "y": 1}, | ||
| 31 | {"label": "o", "x": 9, "y": 1}, | ||
| 32 | {"label": "p", "x": 10, "y": 1}, | ||
| 33 | {"label": "/", "x": 11, "y": 1}, | ||
| 34 | {"label": "bs", "x": 12, "y": 1}, | ||
| 35 | |||
| 36 | {"label": "tab", "x": 0, "y": 2, "w": 1.25}, | ||
| 37 | {"label": "a", "x": 1.25, "y": 2}, | ||
| 38 | {"label": "s", "x": 2.25, "y": 2}, | ||
| 39 | {"label": "d", "x": 3.25, "y": 2}, | ||
| 40 | {"label": "f", "x": 4.25, "y": 2}, | ||
| 41 | {"label": "g", "x": 5.25, "y": 2}, | ||
| 42 | {"label": "h", "x": 6.25, "y": 2}, | ||
| 43 | {"label": "j", "x": 7.25, "y": 2}, | ||
| 44 | {"label": "k", "x": 8.25, "y": 2}, | ||
| 45 | {"label": "l", "x": 9.25, "y": 2}, | ||
| 46 | {"label": ";", "x": 10.25, "y": 2}, | ||
| 47 | {"label": "enter", "x": 11.25, "y": 2, "w": 1.75}, | ||
| 48 | |||
| 49 | {"label": "lshift", "x": 0, "y": 3, "w": 1.75}, | ||
| 50 | {"label": "z", "x": 1.75, "y": 3}, | ||
| 51 | {"label": "x", "x": 2.75, "y": 3}, | ||
| 52 | {"label": "c", "x": 3.75, "y": 3}, | ||
| 53 | {"label": "v", "x": 4.75, "y": 3}, | ||
| 54 | {"label": "b", "x": 5.75, "y": 3}, | ||
| 55 | {"label": "n", "x": 6.75, "y": 3}, | ||
| 56 | {"label": "m", "x": 7.75, "y": 3}, | ||
| 57 | {"label": ",", "x": 8.75, "y": 3}, | ||
| 58 | {"label": ".", "x": 9.75, "y": 3}, | ||
| 59 | {"label": "up", "x": 10.75, "y": 3}, | ||
| 60 | {"label": "rshift", "x": 11.75, "y": 3, "w": 1.25}, | ||
| 61 | |||
| 62 | {"label": "ctrl", "x": 0, "y": 4, "w": 1.25}, | ||
| 63 | {"label": "qui", "x": 1.25, "y": 4, "w": 1.25}, | ||
| 64 | {"label": "alt", "x": 2.50, "y": 4, "w": 1.25}, | ||
| 65 | {"label": "del", "x": 3.75, "y": 4, "w": 1.25}, | ||
| 66 | {"label": "enter", "x": 5, "y": 4, "w": 1.75}, | ||
| 67 | {"label": "space", "x": 6.75, "y": 4, "w": 1.75}, | ||
| 68 | {"label": "'", "x": 8.50, "y": 4, "w": 1.5}, | ||
| 69 | {"label": "left", "x": 10, "y": 4}, | ||
| 70 | {"label": "down", "x": 11, "y": 4}, | ||
| 71 | {"label": "right", "x": 12, "y": 4} | ||
| 72 | |||
| 73 | ] | ||
| 74 | } | ||
| 75 | } | ||
| 76 | } | ||
diff --git a/keyboards/slz40/keymaps/default/keymap.c b/keyboards/slz40/keymaps/default/keymap.c new file mode 100644 index 000000000..9212d792e --- /dev/null +++ b/keyboards/slz40/keymaps/default/keymap.c | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /* Copyright 2020 SithLord | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | _FN, | ||
| 22 | _FN2 | ||
| 23 | }; | ||
| 24 | |||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | /* Base */ | ||
| 27 | [_BASE] = LAYOUT( | ||
| 28 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, | ||
| 29 | KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_SLSH, KC_BSPC, | ||
| 30 | LT(_FN, KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, LT(_FN,KC_ENT), | ||
| 31 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_RSPC, | ||
| 32 | KC_LCTL, KC_LGUI, KC_LALT, LT(_FN2, KC_DEL), LT(_FN2, KC_ENTER), KC_SPACE, KC_QUOT, KC_LEFT, KC_DOWN, KC_RIGHT | ||
| 33 | ), | ||
| 34 | [_FN] = LAYOUT( | ||
| 35 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 36 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_SLSH, KC_BSPC, | ||
| 37 | KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_PIPE, KC_MINS, KC_EQL, KC_NO, KC_BSLS, KC_TRNS, | ||
| 38 | KC_LSFT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_LBRC, KC_RBRC, KC_COMM, KC_DOT, KC_PGUP, KC_RSFT, | ||
| 39 | KC_LCTL, KC_LGUI, KC_LALT, KC_TRNS, KC_TRNS, KC_SPACE, KC_QUOT, KC_HOME, KC_PGDN, KC_END | ||
| 40 | ), | ||
| 41 | [_FN2] = LAYOUT( | ||
| 42 | KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, RESET, | ||
| 43 | KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE, KC_BSPC, | ||
| 44 | KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BSLS, KC_UNDS, KC_PLUS, KC_NO, KC_NO, KC_ENT, | ||
| 45 | KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_LCBR, KC_RCBR, KC_COMM, KC_DOT, KC_VOLU, KC_RSFT, | ||
| 46 | KC_LCTL, KC_LGUI, KC_LALT, KC_TRNS, KC_TRNS, KC_SPACE, KC_QUOT, KC_HOME, KC_VOLD, KC_END | ||
| 47 | ) | ||
| 48 | }; | ||
diff --git a/keyboards/slz40/keymaps/default/readme.md b/keyboards/slz40/keymaps/default/readme.md new file mode 100644 index 000000000..e9b38ab41 --- /dev/null +++ b/keyboards/slz40/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for slz40 | |||
diff --git a/keyboards/slz40/readme.md b/keyboards/slz40/readme.md new file mode 100644 index 000000000..d710f597f --- /dev/null +++ b/keyboards/slz40/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # slz40 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | PCB and keymap files for the SLZ40, a 40s style keyboard with numbers for Zhuyin input. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [SithLord](https://github.com/sithlord121/slz40) | ||
| 8 | * Hardware Supported: ProMicro or similar controller is required. | ||
| 9 | * Hardware Availability: PCB files can be found at https://github.com/sithlord121/slz40 | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make slz40:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make slz40:default:flash | ||
| 18 | |||
| 19 | 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/slz40/rules.mk b/keyboards/slz40/rules.mk new file mode 100644 index 000000000..5c0d8f307 --- /dev/null +++ b/keyboards/slz40/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 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 = no # 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 | ||
diff --git a/keyboards/slz40/slz40.c b/keyboards/slz40/slz40.c new file mode 100644 index 000000000..261b0bd89 --- /dev/null +++ b/keyboards/slz40/slz40.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2020 SithLord | ||
| 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 "slz40.h" | ||
diff --git a/keyboards/slz40/slz40.h b/keyboards/slz40/slz40.h new file mode 100644 index 000000000..88e7178c6 --- /dev/null +++ b/keyboards/slz40/slz40.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2020 SithLord | ||
| 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 | #define LAYOUT( \ | ||
| 30 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, \ | ||
| 31 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k0b, k1b, \ | ||
| 32 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ | ||
| 33 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, \ | ||
| 34 | k40, k41, k42, k43, k44, k46, k48, k49, k4a, k4b \ | ||
| 35 | ) { \ | ||
| 36 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ | ||
| 37 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ | ||
| 38 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ | ||
| 39 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b }, \ | ||
| 40 | { k40, k41, k42, k43, k44, KC_NO, k46, KC_NO, k48, k49, k4a, k4b } \ | ||
| 41 | } | ||
